From 5acb83adf2fe799f5e85a4bd6055dce4ed9ef222 Mon Sep 17 00:00:00 2001 From: djaco Date: Wed, 23 Jul 2025 18:19:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20App.js/applyTemplate=20->=20default?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- com.twin.app.shoptime/src/App/App.js | 4 ++-- .../MyPagePanel/MyPageSub/TermsOfService/TermsOfService.jsx | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/com.twin.app.shoptime/src/App/App.js b/com.twin.app.shoptime/src/App/App.js index c84e307f..bede4048 100644 --- a/com.twin.app.shoptime/src/App/App.js +++ b/com.twin.app.shoptime/src/App/App.js @@ -266,10 +266,10 @@ function AppBase(props) { // 앱 초기화가 완료된 후 템플릿 설정 적용 if (httpHeaderRef.current) { const timer = setTimeout(() => { - applyTemplate("eic-gb"); // eic 서버 + GB 국가 + // applyTemplate("eic-gb"); // eic 서버 + GB 국가 // applyTemplate("aic-us"); // aic 서버 + US 국가 // applyTemplate("ruc-ru"); // ruc 서버 + RU 국가 - // applyTemplate("default"); // 기본 설정 (system) + applyTemplate("default"); // 기본 설정 (system) }, 2000); // 2초 후 적용 return () => clearTimeout(timer); diff --git a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/TermsOfService/TermsOfService.jsx b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/TermsOfService/TermsOfService.jsx index 85638b4f..d580884c 100644 --- a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/TermsOfService/TermsOfService.jsx +++ b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/TermsOfService/TermsOfService.jsx @@ -53,6 +53,7 @@ export default function TermsOfService({ title, cbScrollTo }) { const { popupVisible } = useSelector((state) => state.common?.popup); const { optionalTermsAgree } = useSelector((state) => state.common); + console.log("[TermsOfService] 현재 optionalTermsAgree 상태:", optionalTermsAgree); const termsData = useSelector((state) => state.home.termsData); const empTermsData = useSelector((state) => state.emp.empTermsData); const webOSVersion = useSelector( @@ -78,6 +79,7 @@ export default function TermsOfService({ title, cbScrollTo }) { // ✅ fetchCurrentUserHomeTerms 호출 제거 - TV 환경에서 서버 동기화 지연 방지 useEffect(() => { + console.log("[TermsOfService] optionalTermsAgree 상태 변경:", optionalTermsAgree); setLocalOptionalTermsAgree(optionalTermsAgree); setIsOptionalChecked(optionalTermsAgree); }, [optionalTermsAgree]);