diff --git a/frontend/src/app/[locale]/opportunity/[id]/page.tsx b/frontend/src/app/[locale]/opportunity/[id]/page.tsx index 23c0a0f26..974affd2f 100644 --- a/frontend/src/app/[locale]/opportunity/[id]/page.tsx +++ b/frontend/src/app/[locale]/opportunity/[id]/page.tsx @@ -28,11 +28,7 @@ export async function generateMetadata() { return meta; } -async function OpportunityListing({ - params, -}: { - params: { id: string }; -}) { +async function OpportunityListing({ params }: { params: { id: string } }) { const id = Number(params.id); const breadcrumbs = Object.assign([], OPPORTUNITY_CRUMBS); // Opportunity id needs to be a number greater than 1 diff --git a/frontend/src/components/opportunity/OpportunityDescription.tsx b/frontend/src/components/opportunity/OpportunityDescription.tsx index 41c9a0e07..bd6a97401 100644 --- a/frontend/src/components/opportunity/OpportunityDescription.tsx +++ b/frontend/src/components/opportunity/OpportunityDescription.tsx @@ -43,7 +43,10 @@ const eligibleApplicantsFormatter = (applicant_types: string[]) => { const OpportunityDescription = ({ opportunityData }: Props) => { const t = useTranslations("OpportunityListing.description"); - const agency_phone_number_stripped = opportunityData.summary.agency_phone_number ? opportunityData.summary.agency_phone_number.replace(/-/g, "") : ""; + const agency_phone_number_stripped = opportunityData.summary + .agency_phone_number + ? opportunityData.summary.agency_phone_number.replace(/-/g, "") + : ""; const additionalInformationOnEligibility = opportunityData.summary .applicant_eligibility_description @@ -83,9 +86,7 @@ const OpportunityDescription = ({ opportunityData }: Props) => {

- + {opportunityData.summary.agency_phone_number}