more
This commit is contained in:
@@ -37,7 +37,7 @@ const RequestEditPage = () => {
|
||||
const [fetchedCase, setFetchedCase] = useState();
|
||||
const [showInputEle, setShowInputEle] = useState(true);
|
||||
const [document, setDocument] = useState(null);
|
||||
const appUserId = group ? group.appUserId : null;
|
||||
const appUserId = group ? group?.appUserId : null;
|
||||
const [docId, setDocId] = useState(documentId);
|
||||
const [saveDocumentId, setSaveDocumentId] = useState("");
|
||||
const [showSaveModal, setShowSaveModal] = useState(false);
|
||||
@@ -46,13 +46,13 @@ const RequestEditPage = () => {
|
||||
const [showErrorModal, setShowErrorModal] = useState(false);
|
||||
const [isBusy, setIsBusy] = useState(false);
|
||||
// Case Vars
|
||||
const state = group.state[0] ? group.state[0].code : "ny";
|
||||
const state = group?.state[0] ? group.state[0].code : "ny";
|
||||
const lawFirm = group ? group?.firm : null;
|
||||
const streetAdd = group ? group?.streetAddress : null;
|
||||
const city = group ? group.city : null;
|
||||
const usState = group.state[0] ? group.state[0].code : "ny";
|
||||
const zipCode = group ? group.zipCode : null;
|
||||
const telephone = group ? group.telephone : null;
|
||||
const city = group ? group?.city : null;
|
||||
const usState = group?.state[0] ? group?.state[0].code : "ny";
|
||||
const zipCode = group ? group?.zipCode : null;
|
||||
const telephone = group ? group?.telephone : null;
|
||||
|
||||
const apiUrl =
|
||||
process.env.NODE_ENV === "development"
|
||||
@@ -190,14 +190,14 @@ const RequestEditPage = () => {
|
||||
? fetchedCase?.leadAttorneys
|
||||
: null;
|
||||
const reqType = documentType;
|
||||
const captionOne = fetchedCase.caption;
|
||||
const captionTwo = fetchedCase.captionTwo;
|
||||
const caseNum = fetchedCase.caseNumber;
|
||||
const plaintiffs = fetchedCase.plaintiffParties;
|
||||
const defendants = fetchedCase.defendantParties;
|
||||
const venued = fetchedCase.venue;
|
||||
const juris = fetchedCase.jurisdiction;
|
||||
const judge = fetchedCase.judge;
|
||||
const captionOne = fetchedCase?.caption;
|
||||
const captionTwo = fetchedCase?.captionTwo;
|
||||
const caseNum = fetchedCase?.caseNumber;
|
||||
const plaintiffs = fetchedCase?.plaintiffParties;
|
||||
const defendants = fetchedCase?.defendantParties;
|
||||
const venued = fetchedCase?.venue;
|
||||
const juris = fetchedCase?.jurisdiction;
|
||||
const judge = fetchedCase?.judge;
|
||||
const clientPosition = fetchedCase?.clientPosition
|
||||
? fetchedCase?.clientPosition
|
||||
: null;
|
||||
@@ -308,10 +308,10 @@ const RequestEditPage = () => {
|
||||
|
||||
const displayCopy =
|
||||
state === "ny"
|
||||
? docEditCopy.NewYork
|
||||
? docEditCopy?.NewYork
|
||||
: state === "nj"
|
||||
? docEditCopy.NewJersey
|
||||
: docEditCopy.NewYork;
|
||||
? docEditCopy?.NewJersey
|
||||
: docEditCopy?.NewYork;
|
||||
|
||||
const servingParty =
|
||||
fetchedCase?.clientPosition === "Defendant"
|
||||
|
||||
Reference in New Issue
Block a user