Skip to content

Commit 9e9a118

Browse files
sounmindsoobingclaude
committed
fix: avoid empty parentheses in category progress display
solved=0일 λ•Œ "0 / 11 ()" λŒ€μ‹  "0 / 11 ← 아직 μ‹œμž‘ μ•ˆ 함" 좜λ ₯ Co-Authored-By: Soobin Bak <soobing@users.noreply.github.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fbd82f0 commit 9e9a118

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

β€Žutils/learningComment.jsβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ export function formatLearningStatusComment(
105105

106106
for (const { category, solved, total, difficulties } of categoryProgress) {
107107
const bar = progressBar(solved, total);
108-
let completionCell = `${solved} / ${total} (${difficulties})`;
108+
let completionCell = difficulties
109+
? `${solved} / ${total} (${difficulties})`
110+
: `${solved} / ${total}`;
109111
if (solved === 0) {
110112
completionCell += " ← 아직 μ‹œμž‘ μ•ˆ 함";
111113
}

0 commit comments

Comments
Β (0)