[홈패널] 홈투데이딜 Nect /Pre 버튼 수정
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user