more
This commit is contained in:
@@ -47,7 +47,8 @@ const DocEditPage = () => {
|
||||
const [index, setIndex] = useState(0);
|
||||
|
||||
// For document generation:
|
||||
const state = group ? group?.state : null;
|
||||
|
||||
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;
|
||||
@@ -61,14 +62,14 @@ const DocEditPage = () => {
|
||||
: process.env.REACT_APP_API_PROD;
|
||||
|
||||
const displayCopy =
|
||||
state === "New York"
|
||||
state === "ny"
|
||||
? docEditCopy.NewYork
|
||||
: state === "New Jersey"
|
||||
: state === "nj"
|
||||
? docEditCopy.NewJersey
|
||||
: docEditCopy.NewYork;
|
||||
|
||||
const headerPicker = () => {
|
||||
switch (state.code) {
|
||||
switch (state) {
|
||||
case "ny":
|
||||
return (
|
||||
<NewYorkCaption
|
||||
|
||||
Reference in New Issue
Block a user