신규통합로그 피드백반영- pincode status값 추가
This commit is contained in:
@@ -170,24 +170,27 @@ export default function PinCodeInput({
|
|||||||
|
|
||||||
const onClickForgetPinCode = useCallback(() => {
|
const onClickForgetPinCode = useCallback(() => {
|
||||||
setPin(["", "", "", ""]);
|
setPin(["", "", "", ""]);
|
||||||
dispatch(sendLogTotalRecommend({
|
dispatch(
|
||||||
buttonTitle:"ForgetPINcode",
|
sendLogTotalRecommend({
|
||||||
contextName:Config.LOG_CONTEXT_NAME.PINCODE,
|
buttonTitle: "ForgetPINcode",
|
||||||
messageId: Config.LOG_MESSAGE_ID.PINCODE
|
contextName: Config.LOG_CONTEXT_NAME.PINCODE,
|
||||||
}))
|
messageId: Config.LOG_MESSAGE_ID.PINCODE,
|
||||||
|
})
|
||||||
|
);
|
||||||
dispatch(setShowPopup(Config.ACTIVE_POPUP.qrPopup2));
|
dispatch(setShowPopup(Config.ACTIVE_POPUP.qrPopup2));
|
||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
const onClickConfirm = useCallback(() => {
|
const onClickConfirm = useCallback(() => {
|
||||||
|
const params = {
|
||||||
|
buttonTitle: "OK",
|
||||||
|
contextName: Config.LOG_CONTEXT_NAME.PINCODE,
|
||||||
|
messageId: Config.LOG_MESSAGE_ID.PINCODE,
|
||||||
|
};
|
||||||
if (pin.includes("")) {
|
if (pin.includes("")) {
|
||||||
setErrorMsg($L("Please enter a PIN CODE."));
|
setErrorMsg($L("Please enter a PIN CODE."));
|
||||||
|
dispatch(sendLogTotalRecommend({ ...params, status: "false" }));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dispatch(sendLogTotalRecommend({
|
|
||||||
buttonTitle:"OK",
|
|
||||||
contextName:Config.LOG_CONTEXT_NAME.PINCODE,
|
|
||||||
messageId: Config.LOG_MESSAGE_ID.PINCODE
|
|
||||||
}))
|
|
||||||
setOkClicked(true);
|
setOkClicked(true);
|
||||||
|
|
||||||
const pinString = pin.join("");
|
const pinString = pin.join("");
|
||||||
@@ -232,6 +235,7 @@ export default function PinCodeInput({
|
|||||||
if (!isMounted.current) return;
|
if (!isMounted.current) return;
|
||||||
|
|
||||||
if (response.data.retCode === 0) {
|
if (response.data.retCode === 0) {
|
||||||
|
dispatch(sendLogTotalRecommend({ ...params, status: "true" }));
|
||||||
setIsOrderSuccessful(true);
|
setIsOrderSuccessful(true);
|
||||||
setPlaceOrderPopup(false);
|
setPlaceOrderPopup(false);
|
||||||
dispatch(
|
dispatch(
|
||||||
@@ -256,6 +260,7 @@ export default function PinCodeInput({
|
|||||||
} else {
|
} else {
|
||||||
if (!isMounted.current) return;
|
if (!isMounted.current) return;
|
||||||
setErrorMsg($L("Your entries did not match. Please try again.")); // 핀코드 검증 단계 후 에러처리
|
setErrorMsg($L("Your entries did not match. Please try again.")); // 핀코드 검증 단계 후 에러처리
|
||||||
|
dispatch(sendLogTotalRecommend({ ...params, status: "false" }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user