Skip to content

Commit

Permalink
Fix auto auth case for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mzparacha committed Feb 12, 2024
1 parent dc0a15b commit a2c9b81
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/commonwealth/client/scripts/hooks/useWallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,16 @@ const useWallets = (walletProps: IuseWalletProps) => {
setSignerAccount(signingAccount);
setIsNewlyCreated(newlyCreated);
setIsLinkingOnMobile(isLinkingWallet);
setActiveStep('redirectToSign');
if (featureFlags.newSignInModal) {
onAccountVerified(
signingAccount,
newlyCreated,
isLinkingWallet,
wallet,
);
} else {
setActiveStep('redirectToSign');
}
} else {
onAccountVerified(
signingAccount,
Expand Down Expand Up @@ -724,7 +733,11 @@ const useWallets = (walletProps: IuseWalletProps) => {
if (setSignerAccount) setSignerAccount(account);
if (setIsNewlyCreated) setIsNewlyCreated(false);
if (setIsLinkingOnMobile) setIsLinkingOnMobile(false);
setActiveStep('redirectToSign');
if (featureFlags.newSignInModal) {
onAccountVerified(account, false, false);
} else {
setActiveStep('redirectToSign');
}
return;
} else {
onAccountVerified(account, false, false);
Expand Down

0 comments on commit a2c9b81

Please sign in to comment.