gnosis / ido-starter

Gnosis safe app to start auction on gnosis auction
11 stars 19 forks source link

Extra validate number inputs for avoid crashing the app #24

Closed hpmaxi closed 3 years ago

hpmaxi commented 3 years ago

Closes #16

This should fix the problem. Two alternative approaches that I've tried is to use numeraljs with 0[.]00 as format and react-number-format, in the first case to set only the formatted result in the input but onChange this makes it impossible to write decimal numbers, in onBlur doesn't look very well. and using react-number-format doesn't work for some reason.

github-actions[bot] commented 3 years ago
josojo commented 3 years ago

It is somehow introducing a new problem: 0.001 is not accepted: image