From 59907fed0ab67e9481e7fab71eb4f776c5edbcaf Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 23 May 2024 13:18:07 +0100 Subject: [PATCH] removed hello debug text --- components/case/representation/index.js | 12 ++++++++++-- .../representation/representationCompleteSubmit.js | 2 +- components/case/representation/representationLPA.js | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 8b7bd708..a332bee6 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -281,6 +281,7 @@ let MakeRepresentation = (props) => { props={props} caseReference={caseReference} setRepFileName={setRepFileName} + updateRepresentation={updateRepresentation} /> ); } else { @@ -299,6 +300,7 @@ let MakeRepresentation = (props) => { props={props} caseReference={caseReference} setRepFileName={setRepFileName} + updateRepresentation={updateRepresentation} />; break; case "appellant": @@ -321,6 +323,7 @@ let MakeRepresentation = (props) => { setSubmitBack={setSubmitBack} props={props} setRepFileName={setRepFileName} + updateRepresentation={updateRepresentation} /> ); break; @@ -371,6 +374,7 @@ let MakeRepresentation = (props) => { setSubmitBack={setSubmitBack} props={props} setRepFileName={setRepFileName} + updateRepresentation={updateRepresentation} /> ); break; @@ -394,6 +398,7 @@ let MakeRepresentation = (props) => { setSubmitBack={setSubmitBack} props={props} setRepFileName={setRepFileName} + updateRepresentation={updateRepresentation} /> ); break; @@ -414,6 +419,7 @@ let MakeRepresentation = (props) => { setSubmitBack={setSubmitBack} props={props} setRepFileName={setRepFileName} + updateRepresentation={updateRepresentation} /> ); break; @@ -434,6 +440,7 @@ let MakeRepresentation = (props) => { props={props} caseReference={caseReference} setRepFileName={setRepFileName} + updateRepresentation={updateRepresentation} /> ); } @@ -485,7 +492,7 @@ let MakeRepresentation = (props) => { ); break; default: - return <>hello; + return <>; break; } } @@ -765,7 +772,8 @@ let MakeRepresentation = (props) => { showQuestionnaireSection < questionnaireCount ? (setShowQuestionnaireSection(showQuestionnaireSection + 1), updateRepresentation(values, false, false)) - : setRepresentationSubmit(true) + : (updateRepresentation(values, false, false), + setRepresentationSubmit(true)) : currentView.representationSubmit == true ? (console.log("capacity", currentView.representationCapacity), console.log("has errors:", props.invalid), diff --git a/components/case/representation/representationCompleteSubmit.js b/components/case/representation/representationCompleteSubmit.js index 17d90c7b..e90ed7ed 100644 --- a/components/case/representation/representationCompleteSubmit.js +++ b/components/case/representation/representationCompleteSubmit.js @@ -127,7 +127,7 @@ const RepCompleteSubmit = (props) => { ); break; default: - return <>hello; + return <>; break; } } diff --git a/components/case/representation/representationLPA.js b/components/case/representation/representationLPA.js index d35e3acd..5c726306 100644 --- a/components/case/representation/representationLPA.js +++ b/components/case/representation/representationLPA.js @@ -137,7 +137,7 @@ let RepLPA = (props) => { ); break; default: - return <>hello; + return <>; break; } } @@ -188,7 +188,7 @@ let RepLPA = (props) => { ); break; default: - return <>hello; + return <>; break; } }