Skip to content

Commit

Permalink
fix re-publishing preferences state
Browse files Browse the repository at this point in the history
  • Loading branch information
kanthesha committed Sep 24, 2024
1 parent d1e0d83 commit 5195082
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -6973,7 +6973,6 @@ export default class MetamaskController extends EventEmitter {
});

await updateCurrentLocale(currentLocale);

if (currentState.incomingTransactionsPreferences?.[chainId]) {
this.txController.startIncomingTransactionPolling();
} else {
Expand All @@ -6983,11 +6982,11 @@ export default class MetamaskController extends EventEmitter {
this.#checkTokenListPolling(currentState, previousState);

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

#checkTokenListPolling(currentState, previousState) {
Expand Down

0 comments on commit 5195082

Please sign in to comment.