Skip to content

Commit 341bd9b

Browse files
fix: draft document redirect issue
1 parent 2f4d04c commit 341bd9b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

microfrontends/SignDocuments/src/Component/DraftDocument.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ function DraftDocument() {
7070
navigate(`${hostUrl}pdfRequestFiles/${data.objectId}`);
7171
} //placeholder draft document
7272
else if (
73-
(signerExist?.length > 0 && !isPlaceholder) ||
74-
(!signerExist && isPlaceholder?.length > 0)
73+
(signerExist?.length > 0 &&
74+
(!isPlaceholder || isPlaceholder?.length === 0)) ||
75+
((!signerExist || signerExist?.length === 0) && isPlaceholder?.length > 0)
7576
) {
7677
navigate(`${hostUrl}placeHolderSign/${data.objectId}`);
7778
}

0 commit comments

Comments
 (0)