FeaturedBrand 진입후 상단 네비 이동시 앱재실행수정
This commit is contained in:
@@ -121,7 +121,9 @@ function AppBase(props) {
|
||||
(state) => state.common.appStatus.cursorVisible
|
||||
);
|
||||
const introTermsAgree = useSelector((state) => state.common.introTermsAgree);
|
||||
const optionalTermsAgree = useSelector((state) => state.common.optionalTermsAgree);
|
||||
const optionalTermsAgree = useSelector(
|
||||
(state) => state.common.optionalTermsAgree
|
||||
);
|
||||
// termsFlag 전체 상태 확인
|
||||
const termsFlag = useSelector((state) => state.common.termsFlag);
|
||||
const termsData = useSelector((state) => state.home.termsData);
|
||||
@@ -131,10 +133,10 @@ function AppBase(props) {
|
||||
if (!terms) {
|
||||
return false;
|
||||
}
|
||||
const optionalTerm = terms.find(term => term.trmsTpCd === "MST00405");
|
||||
return optionalTerm ? optionalTerm.trmsPopFlag === 'Y' : false;
|
||||
const optionalTerm = terms.find((term) => term.trmsTpCd === "MST00405");
|
||||
return optionalTerm ? optionalTerm.trmsPopFlag === "Y" : false;
|
||||
}, [termsData]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (termsData?.data?.terms) {
|
||||
dispatch(getTermsAgreeYn());
|
||||
@@ -375,7 +377,6 @@ function AppBase(props) {
|
||||
// }, 3000);
|
||||
// }, [dispatch]);
|
||||
|
||||
|
||||
// 약관 동의 및 선택 약관 팝업 처리
|
||||
useEffect(() => {
|
||||
if (introTermsAgree === undefined) {
|
||||
@@ -430,7 +431,8 @@ function AppBase(props) {
|
||||
}, [dispatch]);
|
||||
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
// <ErrorBoundary>
|
||||
<>
|
||||
{webOSVersion === "" ? null : Number(webOSVersion) < 4 ? (
|
||||
<NotSupportedVersion />
|
||||
) : (
|
||||
@@ -444,7 +446,8 @@ function AppBase(props) {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</ErrorBoundary>
|
||||
</>
|
||||
// </ErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ const hasTemplateCodeWithValue = (array, value) =>
|
||||
const shouldRenderComponent = (data) => {
|
||||
return (
|
||||
(Array.isArray(data) && data.length > 0) ||
|
||||
(typeof data === "object" && Object.keys(data).length > 0)
|
||||
(data && typeof data === "object" && Object.keys(data).length > 0)
|
||||
);
|
||||
};
|
||||
|
||||
@@ -403,7 +403,6 @@ const FeaturedBrandsPanel = ({ isOnTop, panelInfo, spotlightId }) => {
|
||||
(containerId) => setFocusedContainerId(containerId),
|
||||
[]
|
||||
);
|
||||
|
||||
const renderPageItem = useCallback(() => {
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user