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
);
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>
);
}