[DetailPanel] PopUp Close시 쿠폰 정보가 없어지는 현상 수정
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user