Merge pull request #651 from betagouv/quickfix
Corrige les décimales à rallonge dans les inputs de tauxpull/653/head
commit
c348fee8a0
|
@ -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)
|
||||
}
|
||||
: {})
|
||||
|
|
Loading…
Reference in New Issue