From 1536977473a0077a084b32134fb5ba57c609bafe Mon Sep 17 00:00:00 2001 From: Thunnini Date: Wed, 21 Dec 2022 01:55:40 +0900 Subject: [PATCH] Fix a bug related to evm chain and ledger --- pages/verification/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/verification/index.tsx b/pages/verification/index.tsx index 8f9bda7..5031fba 100644 --- a/pages/verification/index.tsx +++ b/pages/verification/index.tsx @@ -127,6 +127,12 @@ export default function VerificationPage() { return true; } + if (walletKey) { + if (walletKey.isLedgerNano && chain.isEthermintLike) { + return true; + } + } + for (const registeredChain of registeredChainList) { if ( chain.prefix === registeredChain.bech32_prefix && @@ -214,6 +220,8 @@ export default function VerificationPage() { ); setRegisteredChainList(addressesQueryResponse.data.addresses); + } else { + setRegisteredChainList([]); } } catch (error) { if (error instanceof Error) {