diff --git a/packages/commonwealth/client/scripts/hooks/useWallets.tsx b/packages/commonwealth/client/scripts/hooks/useWallets.tsx index dc27d84b53f..b4152828906 100644 --- a/packages/commonwealth/client/scripts/hooks/useWallets.tsx +++ b/packages/commonwealth/client/scripts/hooks/useWallets.tsx @@ -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, @@ -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); diff --git a/packages/commonwealth/client/scripts/views/pages/landing/header.tsx b/packages/commonwealth/client/scripts/views/pages/landing/header.tsx index 4804a41d77c..836143d4a8f 100644 --- a/packages/commonwealth/client/scripts/views/pages/landing/header.tsx +++ b/packages/commonwealth/client/scripts/views/pages/landing/header.tsx @@ -61,8 +61,9 @@ export const Header = ({ onLogin }: HeaderProps) => { /> ) : ( setIsAuthModalOpen(false)} + onSuccess={onLogin} isOpen={isAuthModalOpen} + onClose={() => setIsAuthModalOpen(false)} /> )}