Skip to content

Commit 9d79add

Browse files
committed
fix(react): some little issues on react lib
1 parent 87142cd commit 9d79add

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const Badge = withAs(
1313
const displayValue = () => {
1414
if (type !== "numeric") return BADGE_TEXT[variant];
1515
if (count > LIMIT_NUMERIC) return `+${LIMIT_NUMERIC}`;
16+
if (!count && type === "numeric") return "0";
1617
return count;
1718
};
1819

0 commit comments

Comments
 (0)