Fix incorrect pluralization of “entry” (#3933)

This commit is contained in:
mel authored and GitHub committed 2026-07-20 08:35:47 +00:00
1 parent 68ea280388
commit d7baa37e5c
1 file changed
+7 -2
@@ -1157,7 +1157,13 @@ function WorkGroupToggleTimelineRow({
row: Extract<TimelineRow, { kind: "work-toggle" }>;
}) {
const ctx = use(TimelineRowCtx);
const labelNoun = row.onlyToolEntries ? "tool call" : "log entry";
const labelNoun = row.onlyToolEntries
? row.hiddenCount === 1
? "tool call"
: "tool calls"
: row.hiddenCount === 1
? "log entry"
: "log entries";
return (
<button
@@ -1185,7 +1191,6 @@ function WorkGroupToggleTimelineRow({
) : (
<span className="font-medium text-foreground/82">
+{row.hiddenCount} previous {labelNoun}
{row.hiddenCount === 1 ? "" : "s"}
</span>
)}
</button>