Skip to content

Commit

Permalink
ORV2-3020 - FE: CV client should see rejection history (#1664)
Browse files Browse the repository at this point in the history
Co-authored-by: GlenAOT <[email protected]>
  • Loading branch information
glen-aot and glen-aot authored Nov 12, 2024
1 parent 553f437 commit 9d5d355
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -171,6 +169,7 @@ export const ApplicationReview = () => {
doingBusinessAs={doingBusinessAs}
calculatedFee={fee}
loas={applicationData?.permitData?.loas}
applicationRejectionHistory={applicationData?.rejectionHistory}
/>
</FormProvider>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9d5d355

Please sign in to comment.