Skip to content

Commit

Permalink
fix: un-read count not mutating (#1598)
Browse files Browse the repository at this point in the history
* refactor: height of popover & api fetch call

* fix: notification subscribe endpoint

* fix: un-read count not mutating
  • Loading branch information
dakshesh14 authored Jul 20, 2023
1 parent 7866936 commit 546aa40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/app/hooks/use-user-notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
} else {
notificationsMutate(
Expand All @@ -96,6 +97,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
}
};
Expand All @@ -114,6 +116,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
} else {
notificationsMutate(
Expand All @@ -127,6 +130,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
}
};
Expand All @@ -145,6 +149,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
} else {
notificationsMutate(
Expand All @@ -160,6 +165,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
}
};
Expand Down

0 comments on commit 546aa40

Please sign in to comment.