신규통합로그 피드백반영- pincode status값 추가
This commit is contained in:
@@ -170,24 +170,27 @@ export default function PinCodeInput({
|
||||
|
||||
const onClickForgetPinCode = useCallback(() => {
|
||||
setPin(["", "", "", ""]);
|
||||
dispatch(sendLogTotalRecommend({
|
||||
buttonTitle:"ForgetPINcode",
|
||||
contextName:Config.LOG_CONTEXT_NAME.PINCODE,
|
||||
messageId: Config.LOG_MESSAGE_ID.PINCODE
|
||||
}))
|
||||
dispatch(
|
||||
sendLogTotalRecommend({
|
||||
buttonTitle: "ForgetPINcode",
|
||||
contextName: Config.LOG_CONTEXT_NAME.PINCODE,
|
||||
messageId: Config.LOG_MESSAGE_ID.PINCODE,
|
||||
})
|
||||
);
|
||||
dispatch(setShowPopup(Config.ACTIVE_POPUP.qrPopup2));
|
||||
}, [dispatch]);
|
||||
|
||||
const onClickConfirm = useCallback(() => {
|
||||
const params = {
|
||||
buttonTitle: "OK",
|
||||
contextName: Config.LOG_CONTEXT_NAME.PINCODE,
|
||||
messageId: Config.LOG_MESSAGE_ID.PINCODE,
|
||||
};
|
||||
if (pin.includes("")) {
|
||||
setErrorMsg($L("Please enter a PIN CODE."));
|
||||
dispatch(sendLogTotalRecommend({ ...params, status: "false" }));
|
||||
return;
|
||||
}
|
||||
dispatch(sendLogTotalRecommend({
|
||||
buttonTitle:"OK",
|
||||
contextName:Config.LOG_CONTEXT_NAME.PINCODE,
|
||||
messageId: Config.LOG_MESSAGE_ID.PINCODE
|
||||
}))
|
||||
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" }));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user