[DetailPanel] PopUp Close시 쿠폰 정보가 없어지는 현상 수정

This commit is contained in:
고동영
2024-05-22 10:43:01 +09:00
parent 9f091bb5b6
commit 8687da05a3
4 changed files with 19 additions and 22 deletions

View File

@@ -4,6 +4,7 @@ import { useDispatch, useSelector } from "react-redux";
import Spotlight from "@enact/spotlight";
import { clearCouponInfo } from "../../actions/couponActions";
import {
clearThemeDetail,
getThemeCurationDetailInfo,
@@ -125,6 +126,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
return () => {
dispatch(clearProductDetail());
dispatch(clearThemeDetail());
dispatch(clearCouponInfo());
};
}, [dispatch]);