fix: disable otp issue in public signing flow

This commit is contained in:
RaktimaNXG
2024-09-30 19:37:17 +05:30
parent 879279a382
commit 86f0622c4a
+11 -1
View File
@@ -1511,7 +1511,17 @@ function PdfRequestFiles(props) {
if (userRes?.data?.result) {
setRes(userRes.data.result);
await SendOtp();
const isEnableOTP = pdfDetails?.[0]?.IsEnableOTP || false;
if (isEnableOTP) {
await SendOtp();
} else {
setIsPublicContact(false);
setIsPublicTemplate(false);
setIsLoading({ isLoad: false });
setDocumentId(userRes.data?.result?.docId);
getDocumentDetails(userRes?.data?.result?.docId);
contactBookId = userRes?.data?.result?.contactId || "";
}
} else {
console.log("error in public-sign to create user details");
setIsAlert({