diff --git a/landing/siwe.react.js b/landing/siwe.react.js --- a/landing/siwe.react.js +++ b/landing/siwe.react.js @@ -14,10 +14,10 @@ import { useAccount, useWalletClient, WagmiProvider } from 'wagmi'; import ConnectedWalletInfo from 'lib/components/connected-wallet-info.react.js'; -import type { SIWEWebViewMessage } from 'lib/types/siwe-types.js'; +import { type SIWEWebViewMessage } from 'lib/types/siwe-types.js'; import { getSIWEStatementForPublicKey, - siweMessageSigningExplanationStatements, + userTextsForSIWEMessageTypes, createSIWEMessage, } from 'lib/utils/siwe-utils.js'; import { @@ -64,7 +64,7 @@ function SIWE(): React.Node { const { address } = useAccount(); const { data: signer } = useWalletClient(); - const { siweNonce, siwePrimaryIdentityPublicKey } = + const { siweNonce, siwePrimaryIdentityPublicKey, siweMessageType } = React.useContext(SIWEContext); const onClick = React.useCallback(() => { invariant(siweNonce, 'nonce must be present during SIWE attempt'); @@ -125,7 +125,13 @@ [], ); useMonitorForWalletConnectModal(onWalletConnectModalUpdate); - + if (!siweMessageType) { + return ( +
+ By signing up, you agree to our{' '} + Terms of Use &{' '} + Privacy Policy. +
+ ); + } + return ({siweMessageSigningExplanationStatements}
-- By signing up, you agree to our{' '} - Terms of Use &{' '} - Privacy Policy. -
+{explanationStatement}
+ {termsOfUseAndPolicyInfo}