fix: draft document redirect issue

This commit is contained in:
RaktimaNXG
2024-01-10 15:23:35 +05:30
parent 148ae40e1a
commit 2f4d04c722
@@ -134,8 +134,9 @@ function PdfFileComponent({
navigate(`${hostUrl}pdfRequestFiles/${data.objectId}`);
} //placeholder draft document
else if (
(signerExist?.length > 0 && !isPlaceholder) ||
(!signerExist && isPlaceholder?.length > 0)
(signerExist?.length > 0 &&
(!isPlaceholder || isPlaceholder?.length === 0)) ||
((!signerExist || signerExist?.length === 0) && isPlaceholder?.length > 0)
) {
navigate(`${hostUrl}placeHolderSign/${data.objectId}`);
}