diff --git a/packages/page-claims/src/Claim.tsx b/packages/page-claims/src/Claim.tsx index c0cc860203..6aba5a5ec8 100644 --- a/packages/page-claims/src/Claim.tsx +++ b/packages/page-claims/src/Claim.tsx @@ -33,22 +33,14 @@ interface ConstructTx { } // Depending on isOldClaimProcess, construct the correct tx. -function constructTx ( - systemChain: string, - accountId: string, - ethereumSignature: string | null, - kind: StatementKind | undefined, - isOldClaimProcess: boolean -): ConstructTx { +function constructTx (systemChain: string, accountId: string, ethereumSignature: string | null, kind: StatementKind | undefined, isOldClaimProcess: boolean): ConstructTx { if (!ethereumSignature) { return {}; } - return isOldClaimProcess + return isOldClaimProcess || !kind ? { params: [accountId, ethereumSignature], tx: 'claims.claim' } - : !kind - ? {} - : { params: [accountId, ethereumSignature, getStatement(systemChain, kind)?.sentence], tx: 'claims.claimAttest' }; + : { params: [accountId, ethereumSignature, getStatement(systemChain, kind)?.sentence], tx: 'claims.claimAttest' }; } function Claim ({ accountId, className = '', ethereumAddress, ethereumSignature, isOldClaimProcess, onSuccess, statementKind, systemChain }: Props): React.ReactElement | null { diff --git a/packages/page-claims/src/Statement.tsx b/packages/page-claims/src/Statement.tsx index 3101c8d44d..968f11a164 100644 --- a/packages/page-claims/src/Statement.tsx +++ b/packages/page-claims/src/Statement.tsx @@ -38,6 +38,10 @@ function Statement ({ className, kind, systemChain }: Props): React.ReactElement const { t } = useTranslation(); const statementUrl = getStatement(systemChain, kind)?.url; + if (!statementUrl) { + return null; + } + return (
{t('Please read these terms and conditions carefully. By submitting this statement, you are deemed to have accepted these Terms and Conditions. If you do not agree to these terms, please refrain from accessing or proceeding. You can also find them at:')} diff --git a/packages/page-claims/src/index.tsx b/packages/page-claims/src/index.tsx index c2d40f549e..84d7af67ef 100644 --- a/packages/page-claims/src/index.tsx +++ b/packages/page-claims/src/index.tsx @@ -240,51 +240,45 @@ function ClaimsApp (): React.ReactElement { )} {(step >= Step.Sign && !isPreclaimed) && ( - {(isOldClaimProcess || !!statementKind) - ? ( - <> -

{t('{{step}}. Sign with your ETH address', - { replace: { step: isOldClaimProcess ? '2' : '3' } })}

- {!isOldClaimProcess && ()} -
{t('Copy the following string and sign it with the Ethereum account you used during the pre-sale in the wallet of your choice, using the string as the payload, and then paste the transaction signature object below:')}
- - - {payload} - - - ('copied') : t('click to copy')} - trigger='tx-payload' - /> - - {(step === Step.Sign) && ( - -