@@ -28,8 +28,8 @@ export function MainLayout(props: Props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const nda = trustCenter.nonDisclosureAgreement;
|
const nda = trustCenter.nonDisclosureAgreement;
|
||||||
const hasPendingNDA = nda?.viewerSignature
|
const hasPendingNDA = nda
|
||||||
&& (nda.viewerSignature.status === "PENDING" || nda.viewerSignature.status === "FAILED");
|
&& (!nda.viewerSignature || nda.viewerSignature.status === "PENDING" || nda.viewerSignature.status === "FAILED");
|
||||||
|
|
||||||
if (hasPendingNDA) {
|
if (hasPendingNDA) {
|
||||||
return <Navigate to="/nda" replace />;
|
return <Navigate to="/nda" replace />;
|
||||||
|
|||||||
Reference in New Issue
Block a user