diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2023-10-02 14:33:45 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2023-10-02 14:33:45 +0700 |
commit | d9c63e0e81aeaa829d7e0ef2cdbf461a3fca3f46 (patch) | |
tree | fe7312ea7eae4931b986ac02ad59f901ff6eb653 /src | |
parent | a501906993b93bbd1355b2b21d9e76d27c6bf68d (diff) |
fix pattern
Diffstat (limited to 'src')
-rw-r--r-- | src/Result.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |