@@ -199,19 +199,6 @@ export function NDAPage(props: {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleTryAgain = () => {
|
|
||||||
if (ndaSignature && viewer?.fullName) {
|
|
||||||
acceptSignature({
|
|
||||||
variables: {
|
|
||||||
input: {
|
|
||||||
signatureId: ndaSignature.id,
|
|
||||||
fullName: viewer.fullName,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const nda = trustCenter.nonDisclosureAgreement;
|
const nda = trustCenter.nonDisclosureAgreement;
|
||||||
if (
|
if (
|
||||||
!nda
|
!nda
|
||||||
@@ -257,14 +244,7 @@ export function NDAPage(props: {
|
|||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
<form
|
<form
|
||||||
onSubmit={
|
onSubmit={e => void handleSubmit(e)}
|
||||||
isFailed
|
|
||||||
? (e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
handleTryAgain();
|
|
||||||
}
|
|
||||||
: e => void handleSubmit(e)
|
|
||||||
}
|
|
||||||
className="mt-8"
|
className="mt-8"
|
||||||
>
|
>
|
||||||
<Field
|
<Field
|
||||||
|
|||||||
Reference in New Issue
Block a user