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], );