style(stats): format vocabulary timeline mapping

This commit is contained in:
sudacode committed 2026-08-16 00:02:33 -07:00
1 parent 05da8cf86a
commit 65911474cf
1 file changed
+8 -6
@@ -55,13 +55,15 @@ export function VocabularyTab({
value: word.frequency,
})) ?? [],
newWordsTimeline:
((hideNames ? charts?.newWordsTimelineWithoutNames : charts?.newWordsTimeline) ?? []).map((point) => ({
label: epochDayToDate(point.epochDay).toLocaleDateString(undefined, {
month: 'short',
day: 'numeric',
((hideNames ? charts?.newWordsTimelineWithoutNames : charts?.newWordsTimeline) ?? []).map(
(point) => ({
label: epochDayToDate(point.epochDay).toLocaleDateString(undefined, {
month: 'short',
day: 'numeric',
}),
value: point.wordCount,
}),
value: point.wordCount,
})) ?? [],
) ?? [],
}),
[charts, hideNames],
);