Skip to content

Commit

Permalink
fix: check if already shown
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Aug 28, 2023
1 parent 38820be commit 5fecef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tx-flow/flows/SuccessScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SuccessScreen = ({ txId }: { txId: string }) => {
}, [txHash])

useEffect(() => {
if (typeof window !== 'undefined') {
if (typeof window !== 'undefined' && !window.Beamer?.npsShown) {
window.Beamer?.forceShowNPS()
}
}, [])
Expand Down

0 comments on commit 5fecef9

Please sign in to comment.