Skip to content

Commit

Permalink
fix: list of assets for dynamic derivations (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmadek authored and stepanLav committed Mar 18, 2024
1 parent dd8654e commit da35d39
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ export const AssetsList = () => {
const isMultisig = walletUtils.isMultisig(activeWallet);

const availableChains = Object.values(chains).filter((chain) => {
return activeAccounts.some((account) => accountUtils.isChainIdAndCryptoTypeMatch(account, chain));
return activeAccounts.some((account) => {
return (
activeWallet &&
accountUtils.isNonBaseVaultAccount(account, activeWallet) &&
accountUtils.isChainIdAndCryptoTypeMatch(account, chain)
);
});
});

const filteredChains = availableChains.filter((c) => {
Expand Down

0 comments on commit da35d39

Please sign in to comment.