Skip to content

Commit

Permalink
Refresh on video model close.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spicer Matthews committed Aug 23, 2024
1 parent 6fe2834 commit 5984ee9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/optinvideo/OptInVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const OptInVideo = ({ user }) => {
const onClose = () => {
setShowModal(false)
gtag('event', 'optin-video_modal_close')

// Wait 1 second and refesh the page.
setTimeout(() => {
// eslint-disable-next-line no-undef
window.location.reload()
}, 1000)
}

//
Expand Down

0 comments on commit 5984ee9

Please sign in to comment.