Fix multiple bugs in notification requests and notification policies (#32062)

This commit is contained in:
Claire authored and GitHub committed 2024-09-24 15:03:38 +00:00
1 parent cfb8fc6222
commit 0a6b75b71e
5 files changed
+18 -39

No files matched your search

@@ -31,7 +31,7 @@ export const FilteredNotificationsIconButton: React.FC<{
history.push('/notifications/requests');
}, [history]);
if (policy === null || policy.summary.pending_notifications_count === 0) {
if (policy === null || policy.summary.pending_requests_count <= 0) {
return null;
}
@@ -70,7 +70,7 @@ export const FilteredNotificationsBanner: React.FC = () => {
};
}, [dispatch]);
if (policy === null || policy.summary.pending_notifications_count === 0) {
if (policy === null || policy.summary.pending_requests_count <= 0) {
return null;
}