From f7754ec901080ce6868d1a1ec691eba3a5a6fa06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 4 Sep 2023 20:47:45 +0000 Subject: [PATCH] fix non-integer door numbers --- ui/src/components/door_map/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/door_map/calendar.ts b/ui/src/components/door_map/calendar.ts index 0b22a67..035b230 100644 --- a/ui/src/components/door_map/calendar.ts +++ b/ui/src/components/door_map/calendar.ts @@ -14,6 +14,6 @@ export class Door { } public set day(day: number) { - this._day = Math.max(day, -1); + this._day = Math.max(Math.floor(day), -1); } } \ No newline at end of file