@rango-dev/widget-embedded 0.39.1-next.11 → 0.39.1-next.12

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.39.1-next.11",
3
+ "version": "0.39.1-next.12",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -54,4 +54,4 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  }
57
- }
57
+ }
@@ -480,6 +480,11 @@ export const createWalletsSlice: StateCreator<
480
480
  return;
481
481
  }
482
482
 
483
+ // Remove old balances for current wallet and blockchain
484
+ get().removeBalancesForWallet(walletType, {
485
+ chains: [wallet.blockChain],
486
+ });
487
+
483
488
  const balancesForWallet = createBalanceStateForNewAccount(wallet, get);
484
489
 
485
490
  nextAggregatedBalances = updateAggregatedBalanceStateForNewAccount(