Skip to content

Commit

Permalink
fix: remove dependency on filteredEmails for filtering emails
Browse files Browse the repository at this point in the history
Downside to this is that it removes the functionality of keeping the email list up to date in real time (example, if a user disabled an email while in the enabled pane, that email would be immediately removed) but I'll figure out how to fix that
  • Loading branch information
ajyey committed Jun 30, 2023
1 parent aff0121 commit efe26be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/popup/components/home/emails/EmailList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function EmailList({

// Call the main function to apply the filter
applyFilter();
}, [filter, filteredEmails]);
}, [filter]);

// Use Fuse.js to perform the fuzzy search
const fuse: Fuse<MaskedEmail> = new Fuse(filteredEmails, {
Expand Down

0 comments on commit efe26be

Please sign in to comment.