diff --git a/bciers/apps/reporting/src/app/components/finalReview/FinalReviewForm.tsx b/bciers/apps/reporting/src/app/components/finalReview/FinalReviewForm.tsx index 81f3f74a70..8ceed59ae2 100644 --- a/bciers/apps/reporting/src/app/components/finalReview/FinalReviewForm.tsx +++ b/bciers/apps/reporting/src/app/components/finalReview/FinalReviewForm.tsx @@ -15,6 +15,7 @@ import { customizeValidator } from "@rjsf/validator-ajv8"; import finalReviewTheme from "./formCustomization/finalReviewTheme"; import { additionalReportingDataUiSchema } from "@reporting/src/data/jsonSchema/additionalReportingData/additionalReportingData"; import { complianceSummaryUiSchema } from "@reporting/src/data/jsonSchema/complianceSummary"; +import { useState } from "react"; interface Props extends HasReportVersion { taskListElements: TaskListElement[]; @@ -44,10 +45,12 @@ const FinalReviewForm: React.FC = ({ data, }) => { const router = useRouter(); - const saveAndContinueUrl = `/reports/${version_id}/sign-off`; + const saveAndContinueUrl = `/reports/${version_id}/verification`; const backUrl = `/reports/${version_id}/attachments`; + const [isRedirecting, setIsRedirecting] = useState(false); const submitHandler = async () => { + setIsRedirecting(true); router.push(saveAndContinueUrl); }; @@ -56,6 +59,7 @@ const FinalReviewForm: React.FC = ({ steps={multiStepHeaderSteps} initialStep={4} onSubmit={submitHandler} + isRedirecting={isRedirecting} taskListElements={taskListElements} cancelUrl="#" backUrl={backUrl}