Merge branch 'main' of http://repo.tpsadvertising.com/TPS/halkbank_shahsyotag_frontend
This commit is contained in:
commit
986dee4a99
|
|
@ -36,7 +36,6 @@ const AcceptStage = ({
|
|||
const { locale } = useContext(LanguageContext);
|
||||
const userToken = localStorage.getItem("userToken");
|
||||
const { user } = useContext(UserContext);
|
||||
|
||||
const handleCardDetails = (e) => {
|
||||
setCardDetails(e.target.value);
|
||||
};
|
||||
|
|
@ -111,6 +110,7 @@ const AcceptStage = ({
|
|||
|
||||
if (jsonedResponse.errCode === 0) {
|
||||
// sendCode();
|
||||
//setStage(11);
|
||||
loanCreate();
|
||||
} else {
|
||||
setErrMessage(jsonedResponse.messageRu);
|
||||
|
|
@ -126,9 +126,15 @@ const AcceptStage = ({
|
|||
const response = await fetch(
|
||||
`https://shahsyotag.halkbank.gov.tm/onlineloancre-services/api/loancre`,
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
=======
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
>>>>>>> fe809f4436c87ebe37996e8f7763812ea76c2e70
|
||||
},
|
||||
body: JSON.stringify({
|
||||
clientRecipient: {
|
||||
|
|
@ -139,7 +145,11 @@ const AcceptStage = ({
|
|||
surname: borrowerData.surname,
|
||||
lastname: borrowerData.lastname,
|
||||
availableAmount: borrowerData.availableAmount,
|
||||
<<<<<<< HEAD
|
||||
clientType: "recipient",
|
||||
=======
|
||||
clientType: 'recipient',
|
||||
>>>>>>> fe809f4436c87ebe37996e8f7763812ea76c2e70
|
||||
signRecipient: borrowerData.signRecipient,
|
||||
expDate: borrowerData.expDate,
|
||||
},
|
||||
|
|
@ -152,7 +162,11 @@ const AcceptStage = ({
|
|||
surname: guaranterData.surname,
|
||||
lastname: guaranterData.lastname,
|
||||
availableAmount: guaranterData.availableAmount,
|
||||
<<<<<<< HEAD
|
||||
clientType: "guarantor",
|
||||
=======
|
||||
clientType: 'guarantor',
|
||||
>>>>>>> fe809f4436c87ebe37996e8f7763812ea76c2e70
|
||||
signGuarantor: guaranterData.signGuarantor,
|
||||
expDate: guaranterData.expDate,
|
||||
}
|
||||
|
|
@ -162,7 +176,11 @@ const AcceptStage = ({
|
|||
mrtIsInsuarance: isGuranter ? 0 : 1,
|
||||
termInYears: creditDuration,
|
||||
}),
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
=======
|
||||
},
|
||||
>>>>>>> fe809f4436c87ebe37996e8f7763812ea76c2e70
|
||||
);
|
||||
|
||||
if (!response.ok) {
|
||||
|
|
@ -183,6 +201,7 @@ const AcceptStage = ({
|
|||
setError(true);
|
||||
}
|
||||
};
|
||||
<<<<<<< HEAD
|
||||
|
||||
const sendData = async (requestBody) => {
|
||||
try {
|
||||
|
|
@ -222,6 +241,8 @@ const AcceptStage = ({
|
|||
}
|
||||
};
|
||||
|
||||
=======
|
||||
>>>>>>> fe809f4436c87ebe37996e8f7763812ea76c2e70
|
||||
const sendCode = async () => {
|
||||
try {
|
||||
const response = await fetch(
|
||||
|
|
|
|||
Loading…
Reference in New Issue