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