Skip to content

Commit

Permalink
fix: Correct preferences controller usage for isOnPhishingList hook
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Nov 29, 2024
1 parent 8bcd777 commit d19eef9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2835,8 +2835,7 @@ export default class MetamaskController extends EventEmitter {
);
},
isOnPhishingList: (url) => {
const { usePhishDetect } =
this.preferencesController.store.getState();
const { usePhishDetect } = this.preferencesController.state;

if (!usePhishDetect) {
return false;
Expand Down

0 comments on commit d19eef9

Please sign in to comment.