Skip to content

Commit

Permalink
fix(auth): wait for sign out to finish to navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarkhanzadian committed Nov 16, 2023
1 parent 8c3f3d2 commit 5630364
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/pages/sign-out-confirm/sign-out-confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export function SignOutConfirmDrawer() {
return (
<SignOutConfirmLayout
onUserDeleteWallet={() => {
navigate(RouteUrls.Onboarding);
void signOut();
void signOut().finally(() => {
navigate(RouteUrls.Onboarding);
});
}}
onUserSafelyReturnToHomepage={() => navigate(backgroundLocation ?? '..')}
/>
Expand Down

0 comments on commit 5630364

Please sign in to comment.