From 94f1d1dc6969ee58a708c2a9c347ca5fcc45fa78 Mon Sep 17 00:00:00 2001 From: Username * Date: Thu, 23 Nov 2023 20:46:43 +0100 Subject: [PATCH] feat: fix if grid time difference is 0, 24 hours will show --- lib/constants/grid_properties.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/constants/grid_properties.dart b/lib/constants/grid_properties.dart index fb3b1bf..7d0d87e 100644 --- a/lib/constants/grid_properties.dart +++ b/lib/constants/grid_properties.dart @@ -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; }