I have a Form.Input which has type="number". When I try to verify that the Input is empty, it gives me true when the value is 0 (number, if it is "0" as a String it does give false).
if (!this.state.invoice.reimbursed) {
errors.push({
key: "reimbursed",
text: "Reimbursed is required"
});
}
This does work correctly with other fields, I just have a problem with the one that has type="number".
Am I doing the verification wrong?