diff --git a/www/js/metrics/SumaryCard.tsx b/www/js/metrics/SumaryCard.tsx index 7f3170c5d..753674e35 100644 --- a/www/js/metrics/SumaryCard.tsx +++ b/www/js/metrics/SumaryCard.tsx @@ -20,9 +20,8 @@ const SummaryCard = ({ title, unit, value, nDays, goals }: Props) => { const perDayValue = value.map((v) => v / nDays) as Value; const formatVal = (v: Value) => { - const opts = { maximumFractionDigits: 1 }; - if (valueIsRange) return `${formatForDisplay(v[0], opts)} - ${formatForDisplay(v[1], opts)}`; - return `${formatForDisplay(v[0], opts)}`; + if (valueIsRange) return `${formatForDisplay(v[0])} - ${formatForDisplay(v[1])}`; + return `${formatForDisplay(v[0])}`; }; const colorFn = (v: Value) => {