diff --git a/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.jsx b/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.jsx index 6380d17e..ae6e972e 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.jsx @@ -40,6 +40,7 @@ export default function HomeTodayDeal({ const handlePrev = () => { if (currentIndex === 0) { + getIndex(lastIndex); return; } getIndex(currentIndex - 1); @@ -47,6 +48,7 @@ export default function HomeTodayDeal({ const handleNext = () => { if (lastIndex === currentIndex) { + getIndex(0); return; } getIndex(currentIndex + 1);