fix: un-read count not mutating (#1598)

* refactor: height of popover & api fetch call

* fix: notification subscribe endpoint

* fix: un-read count not mutating
This commit is contained in:
Dakshesh Jain 2023-07-20 19:15:13 +05:30 committed by GitHub
parent 78669363b1
commit 546aa40aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
} else {
notificationsMutate(
@ -96,6 +97,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
}
};
@ -114,6 +116,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
} else {
notificationsMutate(
@ -127,6 +130,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
}
};
@ -145,6 +149,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
} else {
notificationsMutate(
@ -160,6 +165,7 @@ const useUserNotification = () => {
})
.finally(() => {
notificationsMutate();
mutateNotificationCount();
});
}
};