mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-18 20:53:45 +02:00
fix: check that start time is before endtime for a template day
This commit is contained in:
parent
3ae1ad417e
commit
b184dc65bd
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ class DayTemplateData implements TemplateData {
|
|||
|
||||
@override
|
||||
void validate() {
|
||||
if (endTime.compareTo(startTime) < 0) {
|
||||
if (!startTime.isBefore(endTime)) {
|
||||
throw TemplateEndBeforeStartException();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue