Skip to content

Commit eb2dbb7

Browse files
Ilkka KorhonenIlkka Korhonen
authored andcommitted
fix
1 parent 5122ed8 commit eb2dbb7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/components/util/Time.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ export const getHourMinute = (v: any) => {
2525
};
2626

2727
export const timeFormat = (h: number, m: number) => {
28-
return h.toString() + ':' + (m < 10 ? '0' + m.toString() : m.toString());
28+
return (
29+
(h < 10 ? '0' + h.toString() : h.toString()) +
30+
':' +
31+
(m < 10 ? '0' + m.toString() : m.toString())
32+
);
2933
};
3034

3135
export const timeToHalfAndFullHours = (

0 commit comments

Comments
 (0)