mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-28 05:36:44 +00:00
Use integers and not numbers in notification policy API counters (#29810)
This commit is contained in:
@@ -27,7 +27,7 @@ export const FilteredNotificationsBanner = () => {
|
||||
};
|
||||
}, [dispatch]);
|
||||
|
||||
if (policy === null || policy.getIn(['summary', 'pending_notifications_count']) * 1 === 0) {
|
||||
if (policy === null || policy.getIn(['summary', 'pending_notifications_count']) === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user