Skip to content

Commit

Permalink
fix: remove required from isHours
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneMoroz authored Jun 6, 2024
1 parent 7737726 commit f0d31ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/form/validateInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function validateTextInput({
}

// Only whole numbers
if (isHours && required) {
if (isHours) {
rules = rules.regex(/^$|^[1-9][0-9]?$/, "Whole numbers only");
}

Expand Down

0 comments on commit f0d31ac

Please sign in to comment.