diff --git a/actions/azurestorage.js b/actions/azurestorage.js
index bcbcc4eb..58fe06c4 100644
--- a/actions/azurestorage.js
+++ b/actions/azurestorage.js
@@ -844,6 +844,26 @@ export const downloadProgressFile = async (
return JSON.parse(downloaded.toString());
};
+export const downloadCaseFile = async (
+ containerName,
+ blobName,
+ casefolderID
+) => {
+ console.log(containerName, blobName);
+
+ const containerToken = await createContainerSas(containerName);
+ const sasUrl = `${STORAGE_PATH}/${containerName}?${containerToken}`;
+ const containerClient = new ContainerClient(sasUrl);
+ const blobClient = containerClient.getBlobClient(blobName);
+ const downloadedBlob = await blobClient.download();
+
+ const downloaded = await streamToBuffer(downloadedBlob.readableStreamBody);
+
+ //console.log("Downloaded blob content:", downloaded.toString());
+
+ return JSON.parse(downloaded.toString());
+};
+
export const downloadAllProgressFiles = async (
containerName,
progressBlobObj
diff --git a/components/account/registerComplete.js b/components/account/registerComplete.js
index 003a6bb1..a2f78bec 100644
--- a/components/account/registerComplete.js
+++ b/components/account/registerComplete.js
@@ -31,8 +31,10 @@ const RegisterComplete = (props) => {
let accountBody = props.props.props.form.accountRegisterForm.values;
let emailAddress =
props.props.props.form.accountRegisterForm.values.emailaddress1;
+
+ // was an appellant "pinswg_typeofinvolvement": 846040001,
Object.assign(accountBody, {
- "pinswg_typeofinvolvement": 846040001,
+ "pinswg_typeofinvolvement": 846040061,
});
accountBody = _.omit(accountBody, ["custom_password_check"]);
diff --git a/components/case/representation/index.js b/components/case/representation/index.js
index e0b7e0aa..d97b1f52 100644
--- a/components/case/representation/index.js
+++ b/components/case/representation/index.js
@@ -283,7 +283,9 @@ let MakeRepresentation = (props) => {
detailsObj.pinswg_endofrepresentationperiod
).setHours(23, 59, 59, 999)
)))
- : ((startDate = new Date(detailsObj.pinswg_startdate)),
+ : ((startDate = new Date(
+ detailsObj.pinswg_startdate || detailsObj.pinswg_startdates
+ )),
(questionnaireDate = new Date(
new Date(detailsObj.pinswg_questionnaireduedate).setHours(
23,
diff --git a/components/case/summary.js b/components/case/summary.js
index c0f1779e..4c838f75 100644
--- a/components/case/summary.js
+++ b/components/case/summary.js
@@ -422,9 +422,14 @@ const CaseSummary = (props) => {
_.has(
detailsObj,
"pinswg_applicationacceptedasvalid"
+ ) ||
+ _.has(
+ detailsObj,
+ "pinswg_startdates"
)) &&
showReps(
detailsObj.pinswg_startdate ||
+ detailsObj.pinswg_startdates ||
detailsObj.pinswg_applicationacceptedasvalid,
detailsObj.pinswg_finalcommentsduedate ||
detailsObj.pinswg_endofrepresentationperiod
diff --git a/components/footerDocs/accessibility_cy.js b/components/footerDocs/accessibility_cy.js
index 2658af18..767310ef 100644
--- a/components/footerDocs/accessibility_cy.js
+++ b/components/footerDocs/accessibility_cy.js
@@ -110,9 +110,9 @@ export default function AccessibilityCY() {
Ffoniwch:{" "}
- 03000 604400
+ 0300 123 1590
diff --git a/components/footerDocs/accessibility_en.js b/components/footerDocs/accessibility_en.js
index 4e1cfe8f..cf2bf5e6 100644
--- a/components/footerDocs/accessibility_en.js
+++ b/components/footerDocs/accessibility_en.js
@@ -105,9 +105,9 @@ export default function AccessibilityEN() {
Call:{" "}
- 03000 604400
+ 0300 123 1590