@rango-dev/widget-embedded 0.39.1-next.12 → 0.39.1-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -485,6 +485,21 @@ export const createWalletsSlice: StateCreator<
|
|
|
485
485
|
chains: [wallet.blockChain],
|
|
486
486
|
});
|
|
487
487
|
|
|
488
|
+
/*
|
|
489
|
+
* Check if after fetching balance for an account, the account still exists.
|
|
490
|
+
* (It might get disconnected while fetching balances is pending)
|
|
491
|
+
*/
|
|
492
|
+
if (
|
|
493
|
+
!get().connectedWallets.find(
|
|
494
|
+
(connectedWallet) =>
|
|
495
|
+
connectedWallet.walletType === walletType &&
|
|
496
|
+
connectedWallet.address === wallet.address &&
|
|
497
|
+
connectedWallet.chain === wallet.blockChain
|
|
498
|
+
)
|
|
499
|
+
) {
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
|
|
488
503
|
const balancesForWallet = createBalanceStateForNewAccount(wallet, get);
|
|
489
504
|
|
|
490
505
|
nextAggregatedBalances = updateAggregatedBalanceStateForNewAccount(
|