From afb95dc6263a96576c9e646e130cfaf4b4e31cd9 Mon Sep 17 00:00:00 2001 From: Sergey Zhuravlev Date: Thu, 21 Nov 2024 10:18:33 +0100 Subject: [PATCH] fix: wallet removing now leads to correct state --- .../features/wallets/WalletSelect/lib/wallet-select-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/features/wallets/WalletSelect/lib/wallet-select-utils.ts b/src/renderer/features/wallets/WalletSelect/lib/wallet-select-utils.ts index d2c4efff5..a2939f5a6 100644 --- a/src/renderer/features/wallets/WalletSelect/lib/wallet-select-utils.ts +++ b/src/renderer/features/wallets/WalletSelect/lib/wallet-select-utils.ts @@ -31,7 +31,7 @@ const getWalletByGroups = (wallets: Wallet[], query = ''): Record { - return getWalletByGroups(wallets)[WalletType.POLKADOT_VAULT].at(0) ?? null; + return Object.values(getWalletByGroups(wallets)).flat().at(0) ?? null; }; export const walletSelectUtils = {