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