Skip to content

Commit

Permalink
feat: fix if grid time difference is 0, 24 hours will show
Browse files Browse the repository at this point in the history
  • Loading branch information
user5522 committed Nov 23, 2023
1 parent edce02f commit 94f1d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/constants/grid_properties.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ int rows(WidgetRef ref) {
if (customTimePeriod && (customEndTime.hour - customStartTime.hour != 0)) {
return (customEndTime.hour - customStartTime.hour).abs();
} else if (customTimePeriod &&
(customEndTime.minute - customStartTime.minute == 0)) {
return 23;
(customEndTime.hour - customStartTime.hour == 0)) {
return 24;
} else {
return 10;
}
Expand Down

0 comments on commit 94f1d1d

Please sign in to comment.