Skip to content

Commit

Permalink
adjust for better comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben.dysarz committed Aug 7, 2024
1 parent 8a96ab3 commit b43163d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Time/TimeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function TimeInput(

const onInnerChange = (number: number) => {
setControlledValue(`${number}`)
if (number !== 0) {
if (number >= 0) {
onChanged(Number(number))
}
}
Expand Down

0 comments on commit b43163d

Please sign in to comment.