@toruslabs/ethereum-controllers 5.2.9 → 5.2.10

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.
@@ -1039,9 +1039,11 @@ class AccountTrackerController extends base_controllers_namespaceObject.BaseCont
1039
1039
  this.getIdentities = getIdentities;
1040
1040
  this.getCurrentChainId = getCurrentChainId;
1041
1041
  onPreferencesStateChange(() => {
1042
- external_loglevel_default().info("onPreferencesStateChange called");
1043
1042
  const refreshNeeded = this.syncAccounts();
1044
- if (refreshNeeded) this.refresh();
1043
+ if (refreshNeeded) {
1044
+ external_loglevel_default().info("onPreferencesStateChange called");
1045
+ this.refresh();
1046
+ }
1045
1047
  });
1046
1048
  this.blockTrackerListener = this.blockTrackerListener.bind(this);
1047
1049
  }