Skip to content

Commit

Permalink
fix: bug where wallet doesn't sign out, closes #2341
Browse files Browse the repository at this point in the history
This bug occurs when the user signs out, say via the popup,
but there is another Hiro Wallet window (frame) open at the
same time. The other active frame will restore the cached
values to its cache, effectively reverting the sign out action.
This fix forces other frames to close on sign out.
  • Loading branch information
kyranjamie committed Apr 11, 2022
1 parent ca43c74 commit 5d6d52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/routes/app-routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function AppRoutes(): JSX.Element | null {
useSaveAuthRequest();

useOnWalletLock(() => navigate(RouteUrls.Unlock));
useOnSignOut(() => navigate(RouteUrls.Onboarding));
useOnSignOut(() => window.close());

useEffect(() => {
void analytics.page('view', `${pathname}`);
Expand Down

0 comments on commit 5d6d52d

Please sign in to comment.