diff options
author | Emiliano Ciavatta | 2020-10-02 15:49:00 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-10-02 15:54:34 +0000 |
commit | 6204c99e69d1707a79c5e56685b47310106c60b0 (patch) | |
tree | 0659149ecbb19ea7118f22e90ebb68c3bebe9518 /frontend/src/components/fields/extensions/NumericField.js | |
parent | e4e317851930004d05d328a3934707e58bd4d2e2 (diff) |
Minor scss improvements
Diffstat (limited to 'frontend/src/components/fields/extensions/NumericField.js')
-rw-r--r-- | frontend/src/components/fields/extensions/NumericField.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/fields/extensions/NumericField.js b/frontend/src/components/fields/extensions/NumericField.js index ed81ed7..19a9e46 100644 --- a/frontend/src/components/fields/extensions/NumericField.js +++ b/frontend/src/components/fields/extensions/NumericField.js @@ -21,7 +21,7 @@ class NumericField extends Component { value = value.toString().replace(/[^\d]/gi, ''); let intValue = 0; if (value !== "") { - intValue = parseInt(value); + intValue = parseInt(value, 10); } const valid = (!this.props.validate || (typeof this.props.validate === "function" && this.props.validate(intValue))) && |