diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2025-02-26 10:47:58 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2025-02-26 10:47:58 +0700 |
| commit | 58601bc17b6f0516eee9c36aa36e39f1dea3ad77 (patch) | |
| tree | 1223647d2e4c80603685fb97532b85649a8edc37 /src/lib/checkout/utils | |
| parent | fdb488651e864cf30f09fe2337187241ef649177 (diff) | |
bitehsip
Diffstat (limited to 'src/lib/checkout/utils')
| -rw-r--r-- | src/lib/checkout/utils/functionCheckouit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/checkout/utils/functionCheckouit.js b/src/lib/checkout/utils/functionCheckouit.js index a6e6c337..a95e6fb4 100644 --- a/src/lib/checkout/utils/functionCheckouit.js +++ b/src/lib/checkout/utils/functionCheckouit.js @@ -21,7 +21,7 @@ export function formatShipmentRange( // } } else { minRange = Number(shipmentDurationRange); // Jika angka tunggal - maxRange = Number(shipmentDurationRange) + 3; + maxRange = Number(shipmentDurationRange); } const start = new Date(); // Tanggal saat ini @@ -82,7 +82,7 @@ export function getToDate(shipmentDurationRange, shipmentDurationUnit) { throw new Error("Unsupported unit. Please use 'days' or 'hours'."); } - return formatDate(maxDate); + return maxDate.getDate(); } function formatDate(date) { |
