diff --git a/components/newappeal/buildchecksection.js b/components/newappeal/buildchecksection.js index 432cfac2..b7eb1245 100644 --- a/components/newappeal/buildchecksection.js +++ b/components/newappeal/buildchecksection.js @@ -120,6 +120,7 @@ let BuildCheckSection = (props) => { }; const finaliseAppeal = async () => { + setFinaliseAppealProcess(true); console.log("finalising appeal:"); await generateAppealPDF( pdfObj, @@ -136,12 +137,8 @@ let BuildCheckSection = (props) => { props.appealType.caseReference.ticketnumber ); }) - .then((data) => { - setFinaliseAppealProcess(true); - return data; - }) - .then((data) => { - console.log("have sent comple message :", data); + .then(() => { + console.log("have sent complete message :"); setCurrentSection(9999); }); }; diff --git a/components/newappeal/buildprogress.js b/components/newappeal/buildprogress.js index 14bde8d3..2335a89b 100644 --- a/components/newappeal/buildprogress.js +++ b/components/newappeal/buildprogress.js @@ -131,56 +131,6 @@ const BuildProgress = (props) => { ))} - - {/*