From eb2dbb7560cf0531898f5416ec656baa1a664b9c Mon Sep 17 00:00:00 2001 From: Ilkka Korhonen Date: Fri, 12 Jul 2024 11:56:39 +0300 Subject: [PATCH] fix --- frontend/src/components/util/Time.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/util/Time.tsx b/frontend/src/components/util/Time.tsx index c40231b..39523b0 100644 --- a/frontend/src/components/util/Time.tsx +++ b/frontend/src/components/util/Time.tsx @@ -25,7 +25,11 @@ export const getHourMinute = (v: any) => { }; export const timeFormat = (h: number, m: number) => { - return h.toString() + ':' + (m < 10 ? '0' + m.toString() : m.toString()); + return ( + (h < 10 ? '0' + h.toString() : h.toString()) + + ':' + + (m < 10 ? '0' + m.toString() : m.toString()) + ); }; export const timeToHalfAndFullHours = (