Skip to content

Commit

Permalink
publish state, not array
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Mar 29, 2024
1 parent 9ba0e75 commit 2ec8e70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2506,10 +2506,10 @@ export default class MetamaskController extends EventEmitter {
}

// TODO: Remove once the preferences controller has been replaced with the core monorepo implementation
this.controllerMessenger.publish('PreferencesController:stateChange', [
this.controllerMessenger.publish(
'PreferencesController:stateChange',
state,
[],
]);
);
});

this.controllerMessenger.subscribe(
Expand Down

0 comments on commit 2ec8e70

Please sign in to comment.