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