From 65911474cfc719096cca044d69157005d0aa2f60 Mon Sep 17 00:00:00 2001 From: sudacode Date: Sun, 16 Aug 2026 00:02:33 -0700 Subject: [PATCH] style(stats): format vocabulary timeline mapping --- stats/src/components/vocabulary/VocabularyTab.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/stats/src/components/vocabulary/VocabularyTab.tsx b/stats/src/components/vocabulary/VocabularyTab.tsx index 2798d784..b1fb1a96 100644 --- a/stats/src/components/vocabulary/VocabularyTab.tsx +++ b/stats/src/components/vocabulary/VocabularyTab.tsx @@ -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], );