From 3acfc00ec0bda9f98200a752b153d1889beae04d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 28 Feb 2024 11:49:07 +0800 Subject: [PATCH] Don't show toast when not on results page --- src/pages/catchup.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/catchup.jsx b/src/pages/catchup.jsx index cfc1273c..11759761 100644 --- a/src/pages/catchup.jsx +++ b/src/pages/catchup.jsx @@ -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,