diff --git a/components/case/representation/index.js b/components/case/representation/index.js
index 55684919..3b045eba 100644
--- a/components/case/representation/index.js
+++ b/components/case/representation/index.js
@@ -1029,7 +1029,10 @@ let MakeRepresentation = (props) => {
if (currentView.representationSubmit == true) {
console.log("capacity", currentView.representationCapacity);
console.log("has errors:", props.invalid);
- Object.assign(values, { "locale": router.locale });
+ Object.assign(values, {
+ "locale": router.locale,
+ "repComplete": currentView.caseReference.currentReference,
+ });
props.invalid == false &&
updateRepresentation(values, false, false);
// values.hasOwnProperty("representationDocuments") &&
diff --git a/components/myportal/topthree_reps.js b/components/myportal/topthree_reps.js
index 7bb660b9..eaf5240d 100644
--- a/components/myportal/topthree_reps.js
+++ b/components/myportal/topthree_reps.js
@@ -187,39 +187,44 @@ const TopThree = (props) => {
{t("myportal:case-reference")}:
- {
- setCurrentReference({
- "ticketnumber":
- showTopThreeArr[key].ticketnumber,
- "currentReference":
- showTopThreeArr[key].caseRef,
- "currentType": topThreeType,
- "incidentid":
- showTopThreeArr[key].incidentID,
- "appealType":
- showTopThreeArr[key].appealType,
- "repDetails": showTopThreeArr[key],
- });
- isLPA && setRepresentationCapacity("lpa");
- }}
- >
- {showTopThreeArr[key].pinswg_name}
-
+ {showTopThreeArr[key].hasOwnProperty("repComplete") ? (
+ {showTopThreeArr[key].pinswg_name}
+ ) : (
+ {
+ setCurrentReference({
+ "ticketnumber":
+ showTopThreeArr[key].ticketnumber,
+ "currentReference":
+ showTopThreeArr[key].caseRef,
+ "currentType": topThreeType,
+ "incidentid":
+ showTopThreeArr[key].incidentID,
+ "appealType":
+ showTopThreeArr[key].appealType,
+ "repDetails": showTopThreeArr[key],
+ });
+ isLPA && setRepresentationCapacity("lpa");
+ }}
+ >
+ {showTopThreeArr[key].pinswg_name}
+
+ )}
{t("myportal:representation-type")}:
@@ -269,30 +274,41 @@ const TopThree = (props) => {
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
] || ""}
+ {showTopThreeArr[key].hasOwnProperty("repComplete") && (
+
+
+ {" "}
+ {t("myportal:submission-processing-label")}
+ .....
+
+
+ )}
-
-
-
+ {!showTopThreeArr[key].hasOwnProperty("repComplete") && (
+
+
+
+ )}
);
});