From 62358fe6d191cc69cac64d72609d2c3e961f877a Mon Sep 17 00:00:00 2001 From: Jens Ravens Date: Mon, 20 Jan 2025 11:18:57 +0100 Subject: [PATCH 1/2] initial commit for Fix Non Working Days From 63462c37d51a54e8606ccded05e64f276f660632 Mon Sep 17 00:00:00 2001 From: Jens Ravens Date: Mon, 20 Jan 2025 11:20:55 +0100 Subject: [PATCH 2/2] fix non working days --- app/views/leaves/new.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/leaves/new.tsx b/app/views/leaves/new.tsx index aebfe88..e756919 100644 --- a/app/views/leaves/new.tsx +++ b/app/views/leaves/new.tsx @@ -19,7 +19,7 @@ interface Form { userId: string; days: Date[]; title: string; - type: 'paid' | 'sick' | 'not_working'; + type: 'paid' | 'sick' | 'non_working'; } export default function ({ @@ -56,7 +56,7 @@ export default function ({ const leaveTypes: SelectOption[] = [ { value: 'paid', label: t('leaves.new.paid') }, { value: 'sick', label: t('leaves.new.sick') }, - { value: 'not_working', label: t('leaves.new.not_working') }, + { value: 'non_working', label: t('leaves.new.not_working') }, ]; const today = new Date(); today.setHours(0, 0, 0, 0);