mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 09:18:51 +01:00
Don't show toast when not on results page
This commit is contained in:
parent
f8b5e9563c
commit
3acfc00ec0
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue