Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
steezeburger committed Dec 11, 2024
1 parent ffc0b04 commit 4784a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/features/EthWallet/hooks/useEvmChainSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 4784a0a

Please sign in to comment.