Fix ininit redirect when person has no NDA configured
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -27,9 +27,11 @@ export function MainLayout(props: Props) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const nda = trustCenter.nonDisclosureAgreement;
|
const hasPendingNDA
|
||||||
const hasPendingNDA = data.viewer && nda
|
= data.viewer
|
||||||
&& (!nda.viewerSignature || nda.viewerSignature.status === "PENDING" || nda.viewerSignature.status === "FAILED");
|
&& trustCenter.nonDisclosureAgreement
|
||||||
|
&& trustCenter.nonDisclosureAgreement.viewerSignature
|
||||||
|
&& trustCenter.nonDisclosureAgreement.viewerSignature.status !== "COMPLETED";
|
||||||
|
|
||||||
if (hasPendingNDA) {
|
if (hasPendingNDA) {
|
||||||
return <Navigate to="/nda" replace />;
|
return <Navigate to="/nda" replace />;
|
||||||
|
|||||||
Reference in New Issue
Block a user