diff --git a/app/components/Notifications/NotificationsPopover.tsx b/app/components/Notifications/NotificationsPopover.tsx index 61faec3930..7a9abacd5f 100644 --- a/app/components/Notifications/NotificationsPopover.tsx +++ b/app/components/Notifications/NotificationsPopover.tsx @@ -20,7 +20,7 @@ const NotificationsPopover: React.FC = ({ children }: Props) => { const scrollableRef = React.useRef(null); React.useEffect(() => { - void notifications.fetchPage({}); + void notifications.fetchPage({ archived: false }); }, [notifications]); const handleRequestClose = React.useCallback(() => { diff --git a/app/stores/NotificationsStore.ts b/app/stores/NotificationsStore.ts index 265cbfba1e..205ca93afb 100644 --- a/app/stores/NotificationsStore.ts +++ b/app/stores/NotificationsStore.ts @@ -17,7 +17,7 @@ export default class NotificationsStore extends Store { @action fetchPage = async ( - options: PaginationParams | undefined + options: ({ archived?: boolean } & PaginationParams) | undefined ): Promise => { this.isFetching = true;