@metamask-previews/assets-controller 13.1.2-preview-9b0921f9b → 13.1.2-preview-ea8763e0c

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/CHANGELOG.md CHANGED
@@ -11,10 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  - Bump `@metamask/transaction-controller` from `^69.5.1` to `^69.5.2` ([#9823](https://github.com/MetaMask/core/pull/9823))
13
13
 
14
- ### Fixed
15
-
16
- - Properly filter empty (`''`) selected account group event ([#9825](https://github.com/MetaMask/core/pull/9825))
17
-
18
14
  ## [13.1.2]
19
15
 
20
16
  ### Changed
@@ -1293,8 +1293,8 @@ _AssetsController_isEnabled = new WeakMap(), _AssetsController_isBasicFunctional
1293
1293
  return reference;
1294
1294
  }, _AssetsController_subscribeToEvents = function _AssetsController_subscribeToEvents() {
1295
1295
  // Subscribe to account group changes (when user switches between account groups like Account 1 -> Account 2)
1296
- this.messenger.subscribe('AccountTreeController:selectedAccountGroupChange', (groupId) => {
1297
- __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_handleAccountGroupChanged).call(this, groupId).catch(console.error);
1296
+ this.messenger.subscribe('AccountTreeController:selectedAccountGroupChange', () => {
1297
+ __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_handleAccountGroupChanged).call(this).catch(console.error);
1298
1298
  });
1299
1299
  // Catch the initial tree build. On returning users,
1300
1300
  // `selectedAccountGroupChange` does NOT fire when the persisted group
@@ -2338,11 +2338,7 @@ async function _AssetsController_executeMiddlewares(params) {
2338
2338
  // ============================================================================
2339
2339
  // EVENT HANDLERS
2340
2340
  // ============================================================================
2341
- async function _AssetsController_handleAccountGroupChanged(groupId) {
2342
- // The selected account group can be empty during onboarding or wallet reset.
2343
- if (!groupId) {
2344
- return;
2345
- }
2341
+ async function _AssetsController_handleAccountGroupChanged() {
2346
2342
  const accounts = __classPrivateFieldGet(this, _AssetsController_instances, "m", _AssetsController_getSelectedAccounts).call(this);
2347
2343
  log('Account group changed', {
2348
2344
  accountCount: accounts.length,