From d04975002e703091ebeb01c0b140be37f8c937b2 Mon Sep 17 00:00:00 2001 From: im-adithya Date: Fri, 27 Dec 2024 16:49:11 +0530 Subject: [PATCH] fix: use replace to return to / --- pages/settings/wallets/SetupWallet.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/settings/wallets/SetupWallet.tsx b/pages/settings/wallets/SetupWallet.tsx index b490cd4..4bad391 100644 --- a/pages/settings/wallets/SetupWallet.tsx +++ b/pages/settings/wallets/SetupWallet.tsx @@ -128,6 +128,7 @@ export function SetupWallet() { if (router.canDismiss()) { router.dismissAll(); } + router.replace("/"); }; React.useEffect(() => { @@ -160,6 +161,7 @@ export function SetupWallet() { if (router.canDismiss()) { router.dismissAll(); } + router.replace("/"); }} >