aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-10-10 12:01:01 +0300
committereug-vs <eug-vs@keemail.me>2020-10-10 12:01:01 +0300
commit5ee4f42b577449a58469fd3c7892455d097a6c79 (patch)
treec666cc9bb32c67e9caea30b6beb8ab18a812aaee
parenta1a2cb59616d833d503c3c090116fc0ad1e9d542 (diff)
downloadwhich-ui-5ee4f42b577449a58469fd3c7892455d097a6c79.tar.gz
feat: increase diff rounding precision
-rw-r--r--src/components/DateString/compactDateString.ts2
1 files changed, 1 insertions, 1 deletions
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