Skip to content

Commit 0b3d6ea

Browse files
Josem1801Brayan-724
authored andcommitted
fix(react): use LIMIT_NUMERIC
1 parent 9d1e687 commit 0b3d6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/react/lib/components/badge/badge.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const Badge = withAs(
1212
(Component, { type, variant, count, ...rest }: BadgeProps) => {
1313
const displayValue = () => {
1414
if (type !== "numeric") return BADGE_TEXT[variant];
15-
if (count > LIMIT_NUMERIC) return "+9";
15+
if (count > LIMIT_NUMERIC) return `+${LIMIT_NUMERIC}`;
1616
return count;
1717
};
1818

0 commit comments

Comments
 (0)