File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
packages/modal/src/ui/components/Login Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import HCaptcha from "@hcaptcha/react-hcaptcha";
22import { AUTH_CONNECTION , AUTH_CONNECTION_TYPE } from "@web3auth/auth" ;
33import {
44 ANALYTICS_EVENTS ,
5+ isBrowser ,
56 log ,
67 type ModalSignInMethodType ,
78 type WALLET_CONNECTOR_TYPE ,
@@ -358,15 +359,13 @@ function Login(props: LoginProps) {
358359 if ( wallet . name === WALLET_CONNECTORS . METAMASK && ! wallet . hasInjectedWallet ) {
359360 handleExternalWalletClick ( { connector : wallet . name } ) ;
360361 // We should show QR code only if the wallet is not installed.
361- if ( ! wallet . isInstalled ) {
362- setBodyState ( {
363- ...bodyState ,
364- metamaskQrCode : {
365- show : true ,
366- wallet : wallet ,
367- } ,
368- } ) ;
369- }
362+ setBodyState ( {
363+ ...bodyState ,
364+ metamaskQrCode : {
365+ show : true ,
366+ wallet : wallet ,
367+ } ,
368+ } ) ;
370369 return ;
371370 }
372371
You can’t perform that action at this time.
0 commit comments