From 9d5d355210b13a029da325a668b7cd3b391c220c Mon Sep 17 00:00:00 2001 From: glen-aot <160973940+glen-aot@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:15:37 -0800 Subject: [PATCH] ORV2-3020 - FE: CV client should see rejection history (#1664) Co-authored-by: GlenAOT <160973940+GlenAOT@users.noreply.github.com> --- .../permits/pages/Application/ApplicationReview.tsx | 7 +++---- .../pages/Application/components/review/PermitReview.tsx | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/features/permits/pages/Application/ApplicationReview.tsx b/frontend/src/features/permits/pages/Application/ApplicationReview.tsx index b362075c1..1c7f78249 100644 --- a/frontend/src/features/permits/pages/Application/ApplicationReview.tsx +++ b/frontend/src/features/permits/pages/Application/ApplicationReview.tsx @@ -27,10 +27,8 @@ import { } from "../../../../routes/constants"; export const ApplicationReview = () => { - const { - applicationData, - setApplicationData: setApplicationContextData, - } = useContext(ApplicationContext); + const { applicationData, setApplicationData: setApplicationContextData } = + useContext(ApplicationContext); const companyId = getDefaultRequiredVal(0, applicationData?.companyId); @@ -171,6 +169,7 @@ export const ApplicationReview = () => { doingBusinessAs={doingBusinessAs} calculatedFee={fee} loas={applicationData?.permitData?.loas} + applicationRejectionHistory={applicationData?.rejectionHistory} /> diff --git a/frontend/src/features/permits/pages/Application/components/review/PermitReview.tsx b/frontend/src/features/permits/pages/Application/components/review/PermitReview.tsx index 3c7d72ea0..5b1c3934a 100644 --- a/frontend/src/features/permits/pages/Application/components/review/PermitReview.tsx +++ b/frontend/src/features/permits/pages/Application/components/review/PermitReview.tsx @@ -65,7 +65,8 @@ interface PermitReviewProps { export const PermitReview = (props: PermitReviewProps) => { const shouldShowRejectionHistory = - props.reviewContext === PERMIT_REVIEW_CONTEXTS.QUEUE && + (props.reviewContext === PERMIT_REVIEW_CONTEXTS.QUEUE || + props.reviewContext === PERMIT_REVIEW_CONTEXTS.APPLY) && props.applicationRejectionHistory && props.applicationRejectionHistory.length > 0;