From f8537e1d4b8c7093066553113593f8ece7bb3cc2 Mon Sep 17 00:00:00 2001 From: Ste Date: Sun, 7 Apr 2024 12:45:14 +0100 Subject: [PATCH] fixed success modal not closing --- src/app/components/Success/Success.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/components/Success/Success.tsx b/src/app/components/Success/Success.tsx index fda2710..5c1a9ba 100644 --- a/src/app/components/Success/Success.tsx +++ b/src/app/components/Success/Success.tsx @@ -77,14 +77,16 @@ export default function Success({ console.log('axios balance', r.data); setBalanceToShow(r.data.result); dispatch(setBalance(r.data.result)); - setTimeout(() => { - setDrawerOpen(false); - router.push(`/transaction?hash=${transactionHash}`); - }, 1000); }) .catch((e) => { console.log('axios balance error', e); }); + + setTimeout(() => { + setDrawerOpen(false); + /* dispatch(setSheet(false)); */ + router.push(`/transactions`); + }, 1000); } }, [transactionStatus]);