diff --git a/CHANGELOG.md b/CHANGELOG.md index a8cfaf0..c2bcf0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog All notable changes to this project will be documented in this file. ## [Unreleased] +- Fix bug that didn't show seats for some study halls ## [0.1.13] - Fix bug that didn't allow to book a seat diff --git a/lib/features/booking/models/booking.dart b/lib/features/booking/models/booking.dart index 64b14d9..80a6b14 100644 --- a/lib/features/booking/models/booking.dart +++ b/lib/features/booking/models/booking.dart @@ -122,7 +122,7 @@ class BookingsPerSeats { List get slots => List.unmodifiable( Iterable.generate( - (timeRange.timeEnd.hour - timeRange.timeStart.hour) * 2 + + (timeRange.normalizedTimeEnd.hour - timeRange.timeStart.hour) * 2 + (timeRange.timeEnd.minute - timeRange.timeStart.minute + 1) ~/ 30, (index) => TimeRange( timeStart: timeRange.timeStart,