Skip to content

Commit

Permalink
[frontend] fix min time for recurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumejparis committed Sep 11, 2024
1 parent 12164aa commit 536aaf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const ScenarioRecurringFormDialog: React.FC<Props> = ({ onSubmit, selectRecurrin
if (['noRepeat'].includes(selectRecurring)) {
if (data.time) {
return new Date(new Date().setUTCHours(0, 0, 0, 0)).getTime() !== new Date(data.startDate).getTime()
|| (new Date(minutesInFuture(1).toISOString()).getTime()) < new Date(data.time).getTime();
|| new Date(new Date(minutesInFuture(1).toISOString()).setSeconds(0, 0)).getTime() < new Date(data.time).getTime();
}
}
return true;
Expand Down

0 comments on commit 536aaf2

Please sign in to comment.