Skip to content

Commit

Permalink
fix(client): better postive number for app badge (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
junglesub authored Oct 22, 2024
1 parent e3e3af1 commit c556c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/front/src/hooks/useFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit c556c32

Please sign in to comment.