From a398edbbcd81a371e5c7146a69ec5f13ab75c1b5 Mon Sep 17 00:00:00 2001 From: Alejandro-Vega Date: Wed, 11 Dec 2024 14:57:22 -0500 Subject: [PATCH] Update Review page to reflect program changes --- src/content/questionnaire/sections/Review.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/content/questionnaire/sections/Review.tsx b/src/content/questionnaire/sections/Review.tsx index 6600d8e7f..cbda559fb 100644 --- a/src/content/questionnaire/sections/Review.tsx +++ b/src/content/questionnaire/sections/Review.tsx @@ -13,7 +13,7 @@ import ReviewDataListingProperty, { StyledValue, } from "../../../components/Questionnaire/ReviewDataListingProperty"; import ReviewFileTypeTable from "../../../components/Questionnaire/ReviewFileTypeTable"; -import { mapObjectWithKey, formatPhoneNumber, findProgram } from "../../../utils"; +import { mapObjectWithKey, formatPhoneNumber } from "../../../utils"; import useFormMode from "../../../hooks/useFormMode"; import DataTypes from "../../../config/DataTypesConfig"; import SectionMetadata from "../../../config/SectionMetadata"; @@ -74,9 +74,7 @@ const FormSectionReview: FC = ({ SectionOption, refs }: FormSe ); const [fileTypes] = useState(data.files?.map(mapObjectWithKey) || []); const [piAddressPart1, ...piAddressPart2] = pi?.address?.split(",") || []; - const [programOption] = useState(findProgram(data.program)); - const predefinedProgram = - programOption && !programOption.editable && !programOption.notApplicable; + const showReviewTitle = formMode === "View Only" || formMode === "Review"; const getFormObject = (): FormObject | null => { @@ -258,18 +256,18 @@ const FormSectionReview: FC = ({ SectionOption, refs }: FormSe