FeaturedBrand 진입후 상단 네비 이동시 앱재실행수정

This commit is contained in:
Dev TWIN0906
2025-06-18 15:57:56 +09:00
parent 9198b2ef55
commit 6ed0f81e21
2 changed files with 11 additions and 9 deletions

View File

@@ -121,7 +121,9 @@ function AppBase(props) {
(state) => state.common.appStatus.cursorVisible (state) => state.common.appStatus.cursorVisible
); );
const introTermsAgree = useSelector((state) => state.common.introTermsAgree); const introTermsAgree = useSelector((state) => state.common.introTermsAgree);
const optionalTermsAgree = useSelector((state) => state.common.optionalTermsAgree); const optionalTermsAgree = useSelector(
(state) => state.common.optionalTermsAgree
);
// termsFlag 전체 상태 확인 // termsFlag 전체 상태 확인
const termsFlag = useSelector((state) => state.common.termsFlag); const termsFlag = useSelector((state) => state.common.termsFlag);
const termsData = useSelector((state) => state.home.termsData); const termsData = useSelector((state) => state.home.termsData);
@@ -131,8 +133,8 @@ function AppBase(props) {
if (!terms) { if (!terms) {
return false; return false;
} }
const optionalTerm = terms.find(term => term.trmsTpCd === "MST00405"); const optionalTerm = terms.find((term) => term.trmsTpCd === "MST00405");
return optionalTerm ? optionalTerm.trmsPopFlag === 'Y' : false; return optionalTerm ? optionalTerm.trmsPopFlag === "Y" : false;
}, [termsData]); }, [termsData]);
useEffect(() => { useEffect(() => {
@@ -375,7 +377,6 @@ function AppBase(props) {
// }, 3000); // }, 3000);
// }, [dispatch]); // }, [dispatch]);
// 약관 동의 및 선택 약관 팝업 처리 // 약관 동의 및 선택 약관 팝업 처리
useEffect(() => { useEffect(() => {
if (introTermsAgree === undefined) { if (introTermsAgree === undefined) {
@@ -430,7 +431,8 @@ function AppBase(props) {
}, [dispatch]); }, [dispatch]);
return ( return (
<ErrorBoundary> // <ErrorBoundary>
<>
{webOSVersion === "" ? null : Number(webOSVersion) < 4 ? ( {webOSVersion === "" ? null : Number(webOSVersion) < 4 ? (
<NotSupportedVersion /> <NotSupportedVersion />
) : ( ) : (
@@ -444,7 +446,8 @@ function AppBase(props) {
} }
/> />
)} )}
</ErrorBoundary> </>
// </ErrorBoundary>
); );
} }

View File

@@ -110,7 +110,7 @@ const hasTemplateCodeWithValue = (array, value) =>
const shouldRenderComponent = (data) => { const shouldRenderComponent = (data) => {
return ( return (
(Array.isArray(data) && data.length > 0) || (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), (containerId) => setFocusedContainerId(containerId),
[] []
); );
const renderPageItem = useCallback(() => { const renderPageItem = useCallback(() => {
return ( return (
<> <>