We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 879279a commit 86f0622Copy full SHA for 86f0622
apps/OpenSign/src/pages/PdfRequestFiles.js
@@ -1511,7 +1511,17 @@ function PdfRequestFiles(props) {
1511
1512
if (userRes?.data?.result) {
1513
setRes(userRes.data.result);
1514
- await SendOtp();
+ const isEnableOTP = pdfDetails?.[0]?.IsEnableOTP || false;
1515
+ if (isEnableOTP) {
1516
+ await SendOtp();
1517
+ } else {
1518
+ setIsPublicContact(false);
1519
+ setIsPublicTemplate(false);
1520
+ setIsLoading({ isLoad: false });
1521
+ setDocumentId(userRes.data?.result?.docId);
1522
+ getDocumentDetails(userRes?.data?.result?.docId);
1523
+ contactBookId = userRes?.data?.result?.contactId || "";
1524
+ }
1525
} else {
1526
console.log("error in public-sign to create user details");
1527
setIsAlert({
0 commit comments