diff --git a/web/account/siwe-login-form.react.js b/web/account/siwe-login-form.react.js --- a/web/account/siwe-login-form.react.js +++ b/web/account/siwe-login-form.react.js @@ -47,6 +47,8 @@ const getSIWENonceLoadingStatusSelector = createLoadingStatusSelector( getSIWENonceActionTypes, ); +const siweAuthLoadingStatusSelector = + createLoadingStatusSelector(siweAuthActionTypes); function SIWELoginForm(props: SIWELoginFormProps): React.Node { const { address } = useAccount(); const { data: signer } = useSigner(); @@ -55,6 +57,7 @@ const getSIWENonceCallLoadingStatus = useSelector( getSIWENonceLoadingStatusSelector, ); + const siweAuthLoadingStatus = useSelector(siweAuthLoadingStatusSelector); const siweAuthCall = useServerCall(siweAuth); const logInExtraInfo = useSelector(webLogInExtraInfoSelector); @@ -153,7 +156,12 @@ [], ); - if (!siweNonce || !primaryIdentityPublicKeys || !signedIdentityKeysBlob) { + if ( + siweAuthLoadingStatus === 'loading' || + !siweNonce || + !primaryIdentityPublicKeys || + !signedIdentityKeysBlob + ) { return (