fix: draft document redirect issue

This commit is contained in:
RaktimaNXG
2024-01-10 15:27:35 +05:30
parent 2f4d04c722
commit 341bd9bef0
@@ -70,8 +70,9 @@ function DraftDocument() {
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}`);
}