From 6e018109fc227e088541db559e300dfece887144 Mon Sep 17 00:00:00 2001 From: Mael Date: Mon, 30 Jul 2018 15:30:59 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20de=20l'affichage=20des=20tr?= =?UTF-8?q?anches=20des=20bar=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/engine/mecanismViews/Barème.js | 6 +++--- source/engine/mecanisms.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/engine/mecanismViews/Barème.js b/source/engine/mecanismViews/Barème.js index 35550c1fe..f88b2999a 100644 --- a/source/engine/mecanismViews/Barème.js +++ b/source/engine/mecanismViews/Barème.js @@ -61,10 +61,10 @@ export default function Barème(nodeValue, explanation) { }}> {maxOnly - ? '< ' + maxOnly + ? `En-dessous de ${maxOnly}` : minOnly - ? '> ' + minOnly - : `${min} - ${max}`} + ? `Au-dessus de ${minOnly}` + : `De ${min} à ${max}`} {makeJsx(taux)} diff --git a/source/engine/mecanisms.js b/source/engine/mecanisms.js index 760e22184..bde279f8f 100644 --- a/source/engine/mecanisms.js +++ b/source/engine/mecanisms.js @@ -706,9 +706,9 @@ export let mecanismScale = (recurse, k, v) => { .map( t => has('en-dessous de')(t) - ? { de: 0, à: t['en-dessous de'], taux: t.taux } + ? { ...t, de: 0, à: t['en-dessous de'] } : has('au-dessus de')(t) - ? { de: t['au-dessus de'], à: Infinity, taux: t.taux } + ? { ...t, de: t['au-dessus de'], à: Infinity } : t ) .map(evolve({ taux: recurse }))