From 56303645487220684fa83a2b8dd0c5f3a879588b Mon Sep 17 00:00:00 2001 From: Edgar Khanzadian Date: Thu, 16 Nov 2023 16:04:13 +0400 Subject: [PATCH] fix(auth): wait for sign out to finish to navigate --- src/app/pages/sign-out-confirm/sign-out-confirm.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/pages/sign-out-confirm/sign-out-confirm.tsx b/src/app/pages/sign-out-confirm/sign-out-confirm.tsx index 5168194c633..b335ec8ed8a 100644 --- a/src/app/pages/sign-out-confirm/sign-out-confirm.tsx +++ b/src/app/pages/sign-out-confirm/sign-out-confirm.tsx @@ -17,8 +17,9 @@ export function SignOutConfirmDrawer() { return ( { - navigate(RouteUrls.Onboarding); - void signOut(); + void signOut().finally(() => { + navigate(RouteUrls.Onboarding); + }); }} onUserSafelyReturnToHomepage={() => navigate(backgroundLocation ?? '..')} />