diff --git a/constants/error-message.ts b/constants/error-message.ts index 3e06c04..46c8158 100644 --- a/constants/error-message.ts +++ b/constants/error-message.ts @@ -31,3 +31,6 @@ export const TOO_MANY_CHAINS_IN_LEDGER_MESSAGE = export const EVM_CHAIN_IN_LEDGER_ERROR = "Ledger is unsupported for this chain"; export const EVM_CHAIN_IN_LEDGER_MESSAGE = "ICNS for Cosmos chains using Ethereum/EVM keys are not supported. Remove EVM-based Cosmos SDK chains and try again."; + +export const LEDGER_MAX_REGISTER_ERROR = + "Data is invalid : JSON. Too many tokens"; diff --git a/pages/verification/index.tsx b/pages/verification/index.tsx index 9c2bfe7..49a46b3 100644 --- a/pages/verification/index.tsx +++ b/pages/verification/index.tsx @@ -61,6 +61,7 @@ import { INVALID_REFERRAL_ERROR, INVALID_REFERRAL_MESSAGE, KEPLR_NOT_FOUND_ERROR, + LEDGER_MAX_REGISTER_ERROR, TOO_MANY_CHAINS_IN_LEDGER_ERROR, TOO_MANY_CHAINS_IN_LEDGER_MESSAGE, TWITTER_LOGIN_ERROR, @@ -510,7 +511,10 @@ export default function VerificationPage() { console.log(errorMessage); captureException(errorMessage); - if (error.message.includes(TOO_MANY_CHAINS_IN_LEDGER_ERROR)) { + if ( + error.message.includes(TOO_MANY_CHAINS_IN_LEDGER_ERROR) || + error.message.includes(LEDGER_MAX_REGISTER_ERROR) + ) { setErrorMessage({ message: TOO_MANY_CHAINS_IN_LEDGER_MESSAGE }); setErrorModalOpen(true); return;