From 5ee4f42b577449a58469fd3c7892455d097a6c79 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 10 Oct 2020 12:01:01 +0300 Subject: feat: increase diff rounding precision --- src/components/DateString/compactDateString.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DateString/compactDateString.ts b/src/components/DateString/compactDateString.ts index f067b1a..8bff4b7 100644 --- a/src/components/DateString/compactDateString.ts +++ b/src/components/DateString/compactDateString.ts @@ -7,7 +7,7 @@ const metrics = [ { name: 'year', ratio: 12 } ]; -const PRECISION = 0.75; +const PRECISION = 0.85; const resolve = (value: number, metricIndex = 0): string => { // Recursively divide value until it's ready to be presented as a string -- cgit v1.2.3