Browse Source

fix calculation

master
Gaëtan Renaudeau 7 years ago
parent
commit
e684879b6f
  1. 2
      src/components/base/InputCurrency/index.js

2
src/components/base/InputCurrency/index.js

@ -43,7 +43,7 @@ const sanitizeValueString = (
display += '.'
}
}
for (let i = decimals; i < unit.magnitude; ++i) {
for (let i = Math.max(0, decimals); i < unit.magnitude; ++i) {
value += '0'
}
if (!value) value = '0'

Loading…
Cancel
Save