From 2ab3610803f62978e1f7f392fa72f00e2c58b898 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 4 Sep 2019 17:59:48 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20corrige=20les=20d=C3=A9cimales=20=C3=A0?= =?UTF-8?q?=20rallonge=20dans=20les=20inputs=20de=20taux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #647 --- source/components/conversation/FormDecorator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/components/conversation/FormDecorator.js b/source/components/conversation/FormDecorator.js index 87a0555d2..d3653a19f 100644 --- a/source/components/conversation/FormDecorator.js +++ b/source/components/conversation/FormDecorator.js @@ -50,7 +50,7 @@ export var FormDecorator = formType => RenderField => setFormValue(name, value), ...(unit === '%' ? { - format: x => (x == null ? null : x * 100), + format: x => (x == null ? null : +(x * 100).toFixed(2)), normalize: x => (x == null ? null : x / 100) } : {})