This commit is contained in:
delivan 2022-12-21 03:55:50 +09:00
commit bbefba49c9
2 changed files with 8 additions and 1 deletions

View File

@ -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";

View File

@ -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;