diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-06 15:23:01 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-06 15:23:01 +0700 |
| commit | 58e8c5b5e3faf5bed973e19d8be036c1e7d004bc (patch) | |
| tree | 93c7ef2a56cc007186e923da524d1e09ba9f6e9f /src/lib | |
| parent | a49c62c01c09a950ccdb16b1def75ae590dc0930 (diff) | |
<iman> update code duration
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/flashSale/components/FlashSale.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/flashSale/components/FlashSale.jsx b/src/lib/flashSale/components/FlashSale.jsx index 715c25c5..9c0e713b 100644 --- a/src/lib/flashSale/components/FlashSale.jsx +++ b/src/lib/flashSale/components/FlashSale.jsx @@ -24,7 +24,7 @@ const FlashSale = () => { const { data } = await res.json(); if (data) { setFlashSales(data); - const remainingTime = calculateRemainingTime(data[0].endDate); + const remainingTime = calculateRemainingTime(data[0]?.endDate); setDuration(remainingTime); } setIsLoading(false); |
