From 10ad606a3b1d410e81f7ae8fea5dfd305bd13194 Mon Sep 17 00:00:00 2001 From: "younghoon100.park" Date: Wed, 24 Jul 2024 13:52:34 +0900 Subject: [PATCH] [Log] IF-LGSP-LOG-008, modify useEffect for sms success (MobileSendPopUp.jsx, HotelProduct.jsx) --- .../components/MobileSend/MobileSendPopUp.jsx | 30 +++++++++---------- .../DetailPanel/ThemeProduct/HotelProduct.jsx | 2 ++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx b/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx index c51fe972..6fef0e5e 100644 --- a/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx +++ b/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx @@ -405,24 +405,22 @@ export default function MobileSendPopUp({ regDeviceInfoRetCode === 0 || curationCouponSuccess === 0 ) { + if (shopByMobileLogRef) { + let params = { + ...shopByMobileLogRef.current, + logTpNo: LOG_TP_NO.SHOP_BY_MOBILE.AGREE_AND_SEND, + mbphNoFlag: "Y", + trmsAgrFlag: "Y", + }; + + dispatch(sendLogShopByMobile(params)); + shopByMobileLogRef.current = null; + } + timer = setTimeout(() => { dispatch(setHidePopup()); - - if (shopByMobileLogRef) { - let params = { - ...shopByMobileLogRef.current, - logTpNo: LOG_TP_NO.SHOP_BY_MOBILE.AGREE_AND_SEND, - mbphNoFlag: "Y", - trmsAgrFlag: "Y", - }; - - dispatch(sendLogShopByMobile(params)); - shopByMobileLogRef.current = null; - - if (spotlightId) { - Spotlight.focus(spotlightId); - } else Spotlight.focus(); - } + if (spotlightId) Spotlight.focus(spotlightId); + else Spotlight.focus(); }, 3000); return () => clearTimeout(timer); diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/HotelProduct.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/HotelProduct.jsx index 59772078..15c1fe65 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/HotelProduct.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ThemeProduct/HotelProduct.jsx @@ -151,6 +151,8 @@ export default function HotelOption({ befPrice: selectedHotelInfo.hotelInfo?.hotelDetailInfo?.price, curationId: selectedHotelInfo.curationId, curationNm: selectedHotelInfo.curationNm, + evntId: "", + evntNm: "", lastPrice: selectedHotelInfo.hotelInfo?.hotelDetailInfo?.price, lgCatCd: "", lgCatNm: "",