From 341bd9bef097a95044df2b2c165a8d6afaa201d8 Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Wed, 10 Jan 2024 15:27:35 +0530 Subject: [PATCH] fix: draft document redirect issue --- microfrontends/SignDocuments/src/Component/DraftDocument.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/microfrontends/SignDocuments/src/Component/DraftDocument.js b/microfrontends/SignDocuments/src/Component/DraftDocument.js index 1d9e57b0b..8384871f4 100644 --- a/microfrontends/SignDocuments/src/Component/DraftDocument.js +++ b/microfrontends/SignDocuments/src/Component/DraftDocument.js @@ -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}`); }