update state order

This commit is contained in:
2024-05-03 12:32:25 +01:00
parent 46582d761c
commit 4735993ae5
3 changed files with 6 additions and 57 deletions
+3 -6
View File
@@ -120,6 +120,7 @@ let BuildCheckSection = (props) => {
}; };
const finaliseAppeal = async () => { const finaliseAppeal = async () => {
setFinaliseAppealProcess(true);
console.log("finalising appeal:"); console.log("finalising appeal:");
await generateAppealPDF( await generateAppealPDF(
pdfObj, pdfObj,
@@ -136,12 +137,8 @@ let BuildCheckSection = (props) => {
props.appealType.caseReference.ticketnumber props.appealType.caseReference.ticketnumber
); );
}) })
.then((data) => { .then(() => {
setFinaliseAppealProcess(true); console.log("have sent complete message :");
return data;
})
.then((data) => {
console.log("have sent comple message :", data);
setCurrentSection(9999); setCurrentSection(9999);
}); });
}; };
-50
View File
@@ -131,56 +131,6 @@ const BuildProgress = (props) => {
))} ))}
</ol> </ol>
</div> </div>
{/* <ol className="govuk-list" id="progress-list">
<ul className="govuk-list ">
<li className="at-nav__page">
<ol className="govuk-list">
{Object.keys(progObj).map((key, index) =>
parseInt(key) + 1 == currentSection ? (
<li key={key}>
<b>
{FieldsTranslations(
progObj[index].title
)}
</b>
</li>
) : (
<li key={key}>
{" "}
<span
title={
progObj[index].title +
` complete`
}
className={
progObj[index]
.allFieldsComplete ==
true
? `sectionCompleteTick`
: `sectionIncomplete`
}
></span>
<a
className="govuk-link"
href="#"
onClick={() => {
gotoSection(
parseInt(key) + 1
);
}}
>
{FieldsTranslations(
progObj[index].title
)}
</a>
</li>
)
)}
</ol>
</li>
</ul>
</ol> */}
</nav> </nav>
{Object.keys(documentListObj).length > 0 && ( {Object.keys(documentListObj).length > 0 && (
@@ -43,7 +43,9 @@ ApiProxy.get(async (req, res) => {
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef) await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)
.then(() => { .then(() => {
createCaseCompleteMessage(containerName, tempCaseRef); createCaseCompleteMessage(containerName, tempCaseRef);
return res.status(200).json(data); return res.status(200).json({
status: "success",
});
}) })
.catch((error) => { .catch((error) => {
console.log( console.log(