mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-29 00:41:08 -04:00
Fix persisting client changes. Fix persisting team changes. Fix validating vat of 0.
This commit is contained in:
@ -59,7 +59,7 @@ export function validate(requiredFields, input) {
|
||||
}
|
||||
|
||||
export function validateField(input, field, label) {
|
||||
if (!input.hasOwnProperty(field) || !input[field] || input[field].length === 0) {
|
||||
if (!input.hasOwnProperty(field) || input[field] === null || input[field].length === 0) {
|
||||
return [`${label} is required`];
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user