Don't show toast when not on results page

This commit is contained in:
Lim Chee Aun 2024-02-28 11:49:07 +08:00
parent f8b5e9563c
commit 3acfc00ec0

View file

@ -469,6 +469,7 @@ function Catchup() {
}, [lastCatchupEndAt, range]); }, [lastCatchupEndAt, range]);
useEffect(() => { useEffect(() => {
if (uiState !== 'results') return;
const filterCategoryText = { const filterCategoryText = {
Filtered: 'filtered posts', Filtered: 'filtered posts',
Groups: 'group posts', Groups: 'group posts',
@ -505,6 +506,7 @@ function Catchup() {
toast?.hideToast?.(); toast?.hideToast?.();
}; };
}, [ }, [
uiState,
selectedFilterCategory, selectedFilterCategory,
selectedAuthor, selectedAuthor,
sortBy, sortBy,