From 4784a0ab2c5960a9b9d36ccbefa991dbf8200617 Mon Sep 17 00:00:00 2001 From: Jesse Snyder Date: Wed, 11 Dec 2024 16:57:15 -0700 Subject: [PATCH] fix lints --- web/src/features/EthWallet/hooks/useEvmChainSelection.tsx | 2 +- web/src/features/KeplrWallet/hooks/useIbcChainSelection.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/features/EthWallet/hooks/useEvmChainSelection.tsx b/web/src/features/EthWallet/hooks/useEvmChainSelection.tsx index ea180cd..7d9b790 100644 --- a/web/src/features/EthWallet/hooks/useEvmChainSelection.tsx +++ b/web/src/features/EthWallet/hooks/useEvmChainSelection.tsx @@ -37,7 +37,7 @@ export function useEvmChainSelection(evmChains: EvmChains) { null, ); useEffect(() => { - if (selectedEvmChain && userAccount?.address) { + if (selectedEvmChain && selectedEvmCurrency && userAccount?.address) { setEvmAccountAddress(userAccount.address); } }, [userAccount.address, selectedEvmChain, selectedEvmCurrency]); diff --git a/web/src/features/KeplrWallet/hooks/useIbcChainSelection.tsx b/web/src/features/KeplrWallet/hooks/useIbcChainSelection.tsx index 9ebcb80..477dee9 100644 --- a/web/src/features/KeplrWallet/hooks/useIbcChainSelection.tsx +++ b/web/src/features/KeplrWallet/hooks/useIbcChainSelection.tsx @@ -44,7 +44,7 @@ export function useIbcChainSelection(ibcChains: IbcChains) { useEffect(() => { // make sure the address is set when // the address, chain, or currency change - if (selectedIbcChain && cosmosAddressFromWallet) { + if (selectedIbcChain && selectedIbcCurrency && cosmosAddressFromWallet) { setIbcAccountAddress(cosmosAddressFromWallet); } }, [cosmosAddressFromWallet, selectedIbcChain, selectedIbcCurrency]);