From abb5018713f99ecf97ebd02309a9eb3310cbcbd0 Mon Sep 17 00:00:00 2001 From: "hyunwoo93.cha" Date: Wed, 8 Jan 2025 17:29:23 +0900 Subject: [PATCH] =?UTF-8?q?[SHOPTIME-3813]=20[SHOPTIME-3920]=20[=EA=B2=B0?= =?UTF-8?q?=EC=A0=9C=EA=B0=80=EB=8A=A5=EC=83=81=ED=83=9C]My=20Info=20>=20T?= =?UTF-8?q?erms=20of=20Services=20(=EC=9A=B4=EC=98=81=ED=99=98=EA=B2=BD=20?= =?UTF-8?q?testing=EB=AA=A8=EB=93=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 수정 내용: getShoptimeTerms 호출 위치 변경 --- com.twin.app.shoptime/src/App/App.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/com.twin.app.shoptime/src/App/App.js b/com.twin.app.shoptime/src/App/App.js index f7a4c22e..ddb6733d 100644 --- a/com.twin.app.shoptime/src/App/App.js +++ b/com.twin.app.shoptime/src/App/App.js @@ -71,6 +71,7 @@ const disableConsole = () => { console.warn = function () {}; console.info = function () {}; }; + const originFocus = Spotlight.focus; Spotlight.focus = function (elem, containerOption) { const ret = originFocus.apply(this, [elem, containerOption]); // this 바인딩을 유지하여 originFocus 호출 @@ -315,19 +316,21 @@ function AppBase(props) { }) ); - // EMP Shoptime 선택 약관 조회 - if ( - webOSVersion && - Number(webOSVersion) >= 6 && - deviceCountryCode && - deviceCountryCode === "US" - ) { - dispatch(getShoptimeTerms()); - } httpHeaderRef.current = httpHeader; } loginUserDataRef.current = loginUserData; - }, [httpHeader, deviceId, webOSVersion]); + }, [httpHeader, deviceId]); + + useEffect(() => { + if ( + webOSVersion && + Number(webOSVersion) >= 6 && + deviceCountryCode && + deviceCountryCode === "US" + ) { + dispatch(getShoptimeTerms()); + } + }, [webOSVersion]); useEffect(() => { console.log("App.js introTermsAgree", introTermsAgree);