diff --git a/native/account/logged-out-modal.react.js b/native/account/logged-out-modal.react.js --- a/native/account/logged-out-modal.react.js +++ b/native/account/logged-out-modal.react.js @@ -793,15 +793,19 @@ ], ); - let siwePanel; - if (mode.curMode === 'siwe') { - siwePanel = ( + const curModeIsSIWE = mode.curMode === 'siwe'; + const nextModeIsPrompt = mode.nextMode === 'prompt'; + const siwePanel = React.useMemo(() => { + if (!curModeIsSIWE) { + return null; + } + return ( ); - } + }, [curModeIsSIWE, goBackToPrompt, nextModeIsPrompt]); const backgroundSource = { uri: splashBackgroundURI }; return (