From d9c63e0e81aeaa829d7e0ef2cdbf461a3fca3f46 Mon Sep 17 00:00:00 2001
From: Rosyid Haryadi <rosyid_haryadi@protonmail.com>
Date: Mon, 2 Oct 2023 14:33:45 +0700
Subject: fix pattern

---
 src/Result.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/Result.jsx')

diff --git a/src/Result.jsx b/src/Result.jsx
index a2da055..c8a367e 100644
--- a/src/Result.jsx
+++ b/src/Result.jsx
@@ -105,7 +105,7 @@ function calculatePerDay(entry, baseSalary, holidayData) {
         ]
     }
 
-    const segmentPattern = isHoliday(entry.date) ? [8, 1, 15] : [1];
+    const segmentPattern = isHoliday(entry.date) ? [8, 1, 15] : [1, 23];
     const segmentedDuration = segmentTime(overtimeDuration, segmentPattern);
     const usedMap = isHoliday(entry.date) ? multiplierMap.holidays : multiplierMap.workDays;
     for (let i = 0; i < segmentedDuration.length; i++) {
-- 
cgit v1.2.3-70-g09d2

