mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-19 05:03:44 +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
|
@override
|
||||||
void validate() {
|
void validate() {
|
||||||
if (endTime.compareTo(startTime) < 0) {
|
if (!startTime.isBefore(endTime)) {
|
||||||
throw TemplateEndBeforeStartException();
|
throw TemplateEndBeforeStartException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue