From fdb488651e864cf30f09fe2337187241ef649177 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Sat, 1 Feb 2025 11:04:29 +0700
Subject: function check holidays

---
 src/lib/checkout/components/SectionExpedition.jsx | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/lib/checkout/components/SectionExpedition.jsx')

diff --git a/src/lib/checkout/components/SectionExpedition.jsx b/src/lib/checkout/components/SectionExpedition.jsx
index d1844204..a00858e5 100644
--- a/src/lib/checkout/components/SectionExpedition.jsx
+++ b/src/lib/checkout/components/SectionExpedition.jsx
@@ -80,6 +80,14 @@ function reverseMappingCourier(couriersOdoo, couriers, includeInstant = false) {
   });
 }
 
+
+function isHiloday(){
+  const today = new Date();
+  const day = today.getDay();
+
+  return day === 6 || day === 7
+}
+
 function mappingCourier(couriersOdoo, couriers, notIncludeInstant = false) {
   const validCourierMap = couriersOdoo.reduce((acc, courier) => {
     acc[courier.label.toLowerCase()] = courier.carrierId;
-- 
cgit v1.2.3

