[포유 작업]#2
- 롤링유닛에서 노출 관련 수정.
This commit is contained in:
@@ -107,7 +107,7 @@ export default function RollingUnit({
|
||||
const nowMenu = useSelector((state) => state.common.menu.nowMenu);
|
||||
const entryMenu = useSelector((state) => state.common.menu.entryMenu);
|
||||
const introTermsAgree = useSelector(
|
||||
(state) => state.common.termsFlag.optionalTerms
|
||||
(state) => state.common.optionalTermsAgree
|
||||
);
|
||||
const homeCategory = useSelector(
|
||||
(state) => state.home.menuData?.data?.homeCategory
|
||||
@@ -120,7 +120,7 @@ export default function RollingUnit({
|
||||
// 컴포넌트 상단에서 필터링
|
||||
const filteredRollingData = useMemo(() => {
|
||||
return rollingData.filter(
|
||||
(item) => introTermsAgree === "Y" || item.shptmLnkTpCd !== "DSP00510"
|
||||
(item) => introTermsAgree === true || item.shptmLnkTpCd !== "DSP00510"
|
||||
);
|
||||
}, [rollingData, introTermsAgree]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user