[Log] IF-LGSP-LOG-008, modify useEffect for sms success (MobileSendPopUp.jsx, HotelProduct.jsx)

This commit is contained in:
younghoon100.park
2024-07-24 13:52:34 +09:00
parent 1ef53f44a9
commit 10ad606a3b
2 changed files with 16 additions and 16 deletions

View File

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

View File

@@ -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: "",