@toruslabs/ethereum-controllers 5.2.8 → 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.
@@ -855,9 +855,11 @@ class AccountTrackerController extends BaseController {
855
855
  this.getIdentities = getIdentities;
856
856
  this.getCurrentChainId = getCurrentChainId;
857
857
  onPreferencesStateChange(() => {
858
- log.info("onPreferencesStateChange called");
859
858
  const refreshNeeded = this.syncAccounts();
860
- if (refreshNeeded) this.refresh();
859
+ if (refreshNeeded) {
860
+ log.info("onPreferencesStateChange called");
861
+ this.refresh();
862
+ }
861
863
  });
862
864
  this.blockTrackerListener = this.blockTrackerListener.bind(this);
863
865
  }