From 3be82e0b36fdd9ca97eceba87baf00c1f0de58b7 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Wed, 26 Oct 2022 18:04:33 +1300 Subject: [PATCH] Default unit on volume labels to kg Closes #100 --- ViewBest.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ViewBest.tsx b/ViewBest.tsx index 4a614cf..492e5f7 100644 --- a/ViewBest.tsx +++ b/ViewBest.tsx @@ -64,7 +64,7 @@ export default function ViewBest() { yData={volumes.map(v => v.value)} yFormat={(value: number) => `${value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')}${ - volumes[0].unit + volumes[0].unit || 'kg' }` } xData={weights}