Skip to content

Commit

Permalink
Show precise notification count instead of just 40+ if there's more
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Sparrow <[email protected]>
  • Loading branch information
DismalShadowX authored May 8, 2024
1 parent 0d3402f commit 56c2f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/icon_with_badge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IconProp } from './icon';
import { Icon } from './icon';

const formatNumber = (num: number): number | string => (num > 40 ? '40+' : num);
const formatNumber = (num: number): number | string => (num > 40 ? num : num);

interface Props {
id: string;
Expand Down

0 comments on commit 56c2f2b

Please sign in to comment.