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