@kaspernj/api-maker 1.0.239 → 1.0.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/inputs/money.jsx +1 -1
package/package.json
CHANGED
package/src/inputs/money.jsx
CHANGED
|
@@ -165,7 +165,7 @@ export default class ApiMakerInputsMoney extends React.PureComponent {
|
|
|
165
165
|
let cents = parseInt(whole * 100, 10)
|
|
166
166
|
let oldCents = parseInt(inputElement.value, 10)
|
|
167
167
|
|
|
168
|
-
if (cents) {
|
|
168
|
+
if (typeof cents == "number") {
|
|
169
169
|
inputElement.value = cents
|
|
170
170
|
} else {
|
|
171
171
|
inputElement.value = ''
|