File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2223,6 +2223,7 @@ export default class MetamaskController extends EventEmitter {
2223
2223
}
2224
2224
if ( this . preferencesController . store . getState ( ) . useTokenDetection ) {
2225
2225
this . tokenListController . start ( ) ;
2226
+ this . tokenDetectionController . enable ( ) ;
2226
2227
}
2227
2228
}
2228
2229
@@ -2235,6 +2236,7 @@ export default class MetamaskController extends EventEmitter {
2235
2236
if ( this . preferencesController . store . getState ( ) . useTokenDetection ) {
2236
2237
this . tokenListController . stop ( ) ;
2237
2238
this . tokenRatesController . stop ( ) ;
2239
+ this . tokenDetectionController . disable ( ) ;
2238
2240
}
2239
2241
}
2240
2242
@@ -5637,11 +5639,6 @@ export default class MetamaskController extends EventEmitter {
5637
5639
*/
5638
5640
set isClientOpen ( open ) {
5639
5641
this . _isClientOpen = open ;
5640
- if ( open ) {
5641
- this . tokenDetectionController . enable ( ) ;
5642
- } else {
5643
- this . tokenDetectionController . disable ( ) ;
5644
- }
5645
5642
}
5646
5643
/* eslint-enable accessor-pairs */
5647
5644
You can’t perform that action at this time.
0 commit comments