Skip to content

Commit

Permalink
fix polling initialization for collectibles (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Dec 13, 2021
1 parent 0c2dbe2 commit 09a1ea6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/assets/CollectibleDetectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,14 @@ export class CollectibleDetectionController extends BaseController<
!useCollectibleDetection !== disabled
) {
this.configure({ selectedAddress, disabled: !useCollectibleDetection });
this.detectCollectibles();
}

if (!useCollectibleDetection) {
this.stop();
if (useCollectibleDetection !== undefined) {
if (useCollectibleDetection) {
this.start();
} else {
this.stop();
}
}
});

Expand Down

0 comments on commit 09a1ea6

Please sign in to comment.