From aa0bbf2604f518f742f65bf0ef3a6cd2a0d36f8a Mon Sep 17 00:00:00 2001 From: Mael Date: Tue, 9 Jul 2019 16:50:35 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20Affichage=20des=20unit=C3=A9s=20dans=20?= =?UTF-8?q?l'interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/units.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/engine/units.js b/source/engine/units.js index 040070601..5f408d6e2 100644 --- a/source/engine/units.js +++ b/source/engine/units.js @@ -12,7 +12,9 @@ export let parseUnit = string => { export let serialiseUnit = ({ numerators, denominators }) => { let n = !isEmpty(numerators) let d = !isEmpty(denominators) - return n && !d + return !n && !d + ? '' + : n && !d ? numerators.join('') : !n && d ? `/${denominators.join('')}`