Fix multiple bugs in notification requests and notification policies (#32062)
This commit is contained in:
parent
cfb8fc6222
commit
0a6b75b71e
5 changed files with 18 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue