Skip to content

Commit 4ebd32c

Browse files
avivkellerCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 2fb2feb commit 4ebd32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui-components/src/MDX/CodeTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const MDXCodeTabs: FC<MDXCodeTabsProps> = ({
3535
const count = occurrences[base] ?? 0;
3636
occurrences[base] = count + 1;
3737

38-
const label = count === 0 ? base : `${base} (${count})`;
38+
const label = count > 0 ? `${base} (${count + 1})` : base;
3939

4040
return {
4141
key: `${language}-${index}`,

0 commit comments

Comments
 (0)