From 5fecef9154e7cf1b40e53b85421475dad3757013 Mon Sep 17 00:00:00 2001 From: iamacook Date: Mon, 28 Aug 2023 18:55:08 +0200 Subject: [PATCH] fix: check if already shown --- src/components/tx-flow/flows/SuccessScreen/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tx-flow/flows/SuccessScreen/index.tsx b/src/components/tx-flow/flows/SuccessScreen/index.tsx index 48eb071a18..4efb724d38 100644 --- a/src/components/tx-flow/flows/SuccessScreen/index.tsx +++ b/src/components/tx-flow/flows/SuccessScreen/index.tsx @@ -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() } }, [])