diff --git a/src/pages/popup/components/home/emails/EmailList.tsx b/src/pages/popup/components/home/emails/EmailList.tsx index 10bae4a..0d9f5a2 100644 --- a/src/pages/popup/components/home/emails/EmailList.tsx +++ b/src/pages/popup/components/home/emails/EmailList.tsx @@ -104,6 +104,7 @@ function EmailList({ }; useEffect(() => { + console.log(searchResults); // Check if the currently selectedEmail is present in the searchResults list. const isSelectedEmailInResults = searchResults.some((result) => { const email = isFuseResult(result) ? result.item : result; @@ -131,7 +132,7 @@ function EmailList({ // Call the onFilteredEmailsCountChange callback with the searchResults length. // This can be used by the parent component to update the count of filtered emails. onFilteredEmailsCountChange(searchResults.length); - }, [searchResults, onFilteredEmailsCountChange]); + }, [searchResults]); return (