diff --git a/native/account/siwe-panel.react.js b/native/account/siwe-panel.react.js --- a/native/account/siwe-panel.react.js +++ b/native/account/siwe-panel.react.js @@ -80,7 +80,14 @@ const [primaryIdentityPublicKey, setPrimaryIdentityPublicKey] = React.useState(null); + const hasCurrentUserInfo = useSelector( + state => !!state.currentUserInfo && !state.currentUserInfo.anonymous, + ); + React.useEffect(() => { + if (hasCurrentUserInfo) { + return; + } const generateNonce = async (nonceFunction: () => Promise) => { try { const response = await nonceFunction(); @@ -117,6 +124,7 @@ getSIWENonceCall, identityGenerateNonce, onClosing, + hasCurrentUserInfo, ]); const [isLoading, setLoading] = React.useState(true);