From 2ec8e70f2cddb53c79c07a2b0b6b96f4513fc43f Mon Sep 17 00:00:00 2001 From: Brian Bergeron Date: Fri, 29 Mar 2024 08:17:58 -0700 Subject: [PATCH] publish state, not array --- app/scripts/metamask-controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 399e58b0cc6a..2407b39c3908 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -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(