This commit is contained in:
Kenneth Jannette
2024-03-07 14:48:50 -06:00
parent 06e07333e5
commit 5bb00b833e
2 changed files with 21 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ export const docEditCopy = {
servingParty,
fetchedCase
) {
const position = fetchedCase.clientPosition;
const position = fetchedCase ? fetchedCase.clientPosition : <></>;
const docCopy =
documentType && documentType === "interrogatories"
? "Interrogatories"
@@ -59,15 +59,25 @@ export const docEditCopy = {
export const outgoingComesNow = (state, fetchedCase) => {
let copyString;
const position = fetchedCase?.clientPosition;
const parties =
fetchedCase?.clientPosition === "Plaintiff"
? fetchedCase?.plaintiffParties
: fetchedCase?.defendantParties;
const adversary =
fetchedCase?.clientPosition === "Plaintiff"
? fetchedCase?.defendantParties
: fetchedCase?.plaintiffParties;
const position = fetchedCase ? fetchedCase?.clientPosition : <></>;
const parties = fetchedCase ? (
fetchedCase?.clientPosition === "Plaintiff" ? (
fetchedCase?.plaintiffParties
) : (
fetchedCase?.defendantParties
)
) : (
<></>
);
const adversary = fetchedCase ? (
fetchedCase?.clientPosition === "Plaintiff" ? (
fetchedCase?.defendantParties
) : (
fetchedCase?.plaintiffParties
)
) : (
<></>
);
if (state === "ny") {
copyString = `COMES NOW, ${position}, ${parties}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${adversary}, to be answered under oath, in writing, in accordance with NY CPLR 3120 - 3130.`;