From a095a2c8cd981ccc43d6928a9ad11e367a34d2e6 Mon Sep 17 00:00:00 2001 From: woolishboy <57816321+woolishboy@users.noreply.github.com> Date: Thu, 21 Nov 2019 08:54:24 -0600 Subject: [PATCH] Fixes bug due to not passing format to formatImperial (#211) --- packages/utils/src/formatMm/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/src/formatMm/index.js b/packages/utils/src/formatMm/index.js index aa14b545315..348c17437c7 100644 --- a/packages/utils/src/formatMm/index.js +++ b/packages/utils/src/formatMm/index.js @@ -21,7 +21,7 @@ const formatMm = (val, units, format = 'html') => { let suffix = '' if (format === 'html') suffix = '"' let fraction128 = Math.round(rest * 128) - if (fraction128 == 0) return formatImperial(negative, inches) + if (fraction128 == 0) return formatImperial(negative, inches, false, false, format) if (fraction128 % 64 == 0) return formatImperial(negative, inches, fraction128 / 64, 2, format) + suffix if (fraction128 % 32 == 0)