diff --git a/src/components/base/InputCurrency/index.js b/src/components/base/InputCurrency/index.js index da1963b0..c32377fc 100644 --- a/src/components/base/InputCurrency/index.js +++ b/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'