신규통합로그 피드백반영- pincode status값 추가

This commit is contained in:
opacity@t-win.kr
2025-06-25 16:43:12 +09:00
parent 19ba64462f
commit c1804860e6

View File

@@ -170,24 +170,27 @@ export default function PinCodeInput({
const onClickForgetPinCode = useCallback(() => {
setPin(["", "", "", ""]);
dispatch(sendLogTotalRecommend({
dispatch(
sendLogTotalRecommend({
buttonTitle: "ForgetPINcode",
contextName: Config.LOG_CONTEXT_NAME.PINCODE,
messageId: Config.LOG_MESSAGE_ID.PINCODE
}))
messageId: Config.LOG_MESSAGE_ID.PINCODE,
})
);
dispatch(setShowPopup(Config.ACTIVE_POPUP.qrPopup2));
}, [dispatch]);
const onClickConfirm = useCallback(() => {
if (pin.includes("")) {
setErrorMsg($L("Please enter a PIN CODE."));
return;
}
dispatch(sendLogTotalRecommend({
const params = {
buttonTitle: "OK",
contextName: Config.LOG_CONTEXT_NAME.PINCODE,
messageId: Config.LOG_MESSAGE_ID.PINCODE
}))
messageId: Config.LOG_MESSAGE_ID.PINCODE,
};
if (pin.includes("")) {
setErrorMsg($L("Please enter a PIN CODE."));
dispatch(sendLogTotalRecommend({ ...params, status: "false" }));
return;
}
setOkClicked(true);
const pinString = pin.join("");
@@ -232,6 +235,7 @@ export default function PinCodeInput({
if (!isMounted.current) return;
if (response.data.retCode === 0) {
dispatch(sendLogTotalRecommend({ ...params, status: "true" }));
setIsOrderSuccessful(true);
setPlaceOrderPopup(false);
dispatch(
@@ -256,6 +260,7 @@ export default function PinCodeInput({
} else {
if (!isMounted.current) return;
setErrorMsg($L("Your entries did not match. Please try again.")); // 핀코드 검증 단계 후 에러처리
dispatch(sendLogTotalRecommend({ ...params, status: "false" }));
}
};