Skip to content

Commit

Permalink
fix asktug header unread
Browse files Browse the repository at this point in the history
  • Loading branch information
wd0517 committed Apr 12, 2024
1 parent 08a742c commit eb0bd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/site-components/src/datasource/asktug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export interface GetPrivateMessagesParams {
export const useAsktugUnreadNotifications = (): number => {
const { fetchers: { asktug: fetcher } } = useContext(SiteComponentsContext)

const { data } = useSWR<Notifications>(['asktug.getNotifications', { unread: 1, recent: 1, limit: 1 }], { fetcher })
const { data } = useSWR<Notifications>(['asktug.getNotifications', { filter: "unread", limit: 1 }], { fetcher })

return data?.notifications.length ?? 0
}
Expand Down

0 comments on commit eb0bd8b

Please sign in to comment.