From 5c8f93ee2285078b2b51e4eafdc80b963de1f773 Mon Sep 17 00:00:00 2001 From: "sungmin.in" Date: Mon, 19 Feb 2024 10:06:02 +0900 Subject: [PATCH] =?UTF-8?q?[=ED=99=88=ED=8C=A8=EB=84=90]=20=ED=99=88?= =?UTF-8?q?=ED=88=AC=EB=8D=B0=EC=9D=B4=EB=94=9C=20Nect=20/Pre=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/HomePanel/HomeTodayDeal/HomeTodayDeal.jsx | 2 ++ 1 file changed, 2 insertions(+) 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);