Skip to content

Commit 0c9546d

Browse files
Merge pull request #150 from felipehertzer/fix-60-minutes
Fixed 60 Minutes, it should be 59 Minutes
2 parents c79ebf6 + f6f85cc commit 0c9546d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Time/TimeInputs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ function TimeInputs({
118118
onSubmitEditing={onSubmitEndInput}
119119
onChanged={(newMinutesFromInput) => {
120120
let newMinutes = newMinutesFromInput
121-
if (newMinutesFromInput > 60) {
122-
newMinutes = 60
121+
if (newMinutesFromInput > 59) {
122+
newMinutes = 59
123123
}
124124
onChange({
125125
hours,

0 commit comments

Comments
 (0)