From 730a7365851f9325a753e6ba2d8731dbbcd8bbf4 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sat, 12 Nov 2022 15:24:34 +1300 Subject: [PATCH] Fix invalid reference to formatMonth in ViewBest --- ViewBest.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ViewBest.tsx b/ViewBest.tsx index 7fa88fd..6598559 100644 --- a/ViewBest.tsx +++ b/ViewBest.tsx @@ -103,7 +103,9 @@ export default function ViewBest() { yData={weights.map(set => set.weight)} yFormat={value => `${value}${weights[0].unit}`} xData={weights} - xFormat={(_value, index) => formatMonth(weights[index].created!)} + xFormat={(_value, index) => + format(new Date(weights[index].created), 'D/M') + } /> )}