diff --git a/src/Components/Modals/CreateModal.js b/src/Components/Modals/CreateModal.js
index fa35522..2daf665 100644
--- a/src/Components/Modals/CreateModal.js
+++ b/src/Components/Modals/CreateModal.js
@@ -36,7 +36,7 @@ const CreateModal = ({ setShowModal, caseData }) => {
const [venueArray, setVenueArray] = useState();
const [newCaseId, setNewCaseId] = useState();
const state = group?.state[0].code ? group?.state[0].code : null;
- console.log("state", state);
+
const caseNumCopy = state === "ny" ? "Index Number" : "Case Number";
const [data, setData] = useState(
getFormDataDefaults(fields, isEditing ? caseData : undefined)
@@ -212,22 +212,27 @@ const CreateModal = ({ setShowModal, caseData }) => {
/>
- {isEditing ? Venue
: <>>}
+ {isEditing ? (
+ Jurisdiction
+ ) : (
+ <>>
+ )}
handleChangeInput(e, "venue")}
+ onChange={(e) => handleChangeInput(e, "jurisdiction")}
label={
- data.venue.value.length === 0
+ data.jurisdiction.value.length === 0
? isEditing
- ? caseData.venue
- : "Venue"
+ ? caseData.jurisdiction
+ : "Jurisdiction"
: ""
}
/>
@@ -255,27 +260,22 @@ const CreateModal = ({ setShowModal, caseData }) => {
- {isEditing ? (
- Jurisdiction
- ) : (
- <>>
- )}
+ {isEditing ? Venue
: <>>}
handleChangeInput(e, "jurisdiction")}
+ onChange={(e) => handleChangeInput(e, "venue")}
label={
- data.jurisdiction.value.length === 0
+ data.venue.value.length === 0
? isEditing
- ? caseData.jurisdiction
- : "Jurisdiction"
+ ? caseData.venue
+ : "Venue"
: ""
}
/>