diff --git a/src/main/front/src/hooks/useFeed.js b/src/main/front/src/hooks/useFeed.js index 1f15a24..88cc72f 100644 --- a/src/main/front/src/hooks/useFeed.js +++ b/src/main/front/src/hooks/useFeed.js @@ -16,7 +16,7 @@ export const useFeedCount = () => { // Update badge as well if (navigator.setAppBadge) { // Display the number of unread messages. - navigator.setAppBadge(count > 0 ? count : 0); + navigator.setAppBadge(Math.max(count, 0)); } }, [count]);