forked from LaconicNetwork/icns-frontend
Fix a bug related to evm chain and ledger
This commit is contained in:
parent
aec2bc7fd3
commit
1536977473
@ -127,6 +127,12 @@ export default function VerificationPage() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (walletKey) {
|
||||||
|
if (walletKey.isLedgerNano && chain.isEthermintLike) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (const registeredChain of registeredChainList) {
|
for (const registeredChain of registeredChainList) {
|
||||||
if (
|
if (
|
||||||
chain.prefix === registeredChain.bech32_prefix &&
|
chain.prefix === registeredChain.bech32_prefix &&
|
||||||
@ -214,6 +220,8 @@ export default function VerificationPage() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
setRegisteredChainList(addressesQueryResponse.data.addresses);
|
setRegisteredChainList(addressesQueryResponse.data.addresses);
|
||||||
|
} else {
|
||||||
|
setRegisteredChainList([]);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user