🐛 corrige les décimales à rallonge dans les inputs de taux

Fix #647
pull/651/head
Johan Girod 2019-09-04 17:59:48 +02:00
parent 9e3a35cdcc
commit 2ab3610803
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
: {})