Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Sep 13, 2024
1 parent adb858c commit eba976f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 1 addition & 5 deletions frontend/src/app/[locale]/opportunity/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -83,9 +86,7 @@ const OpportunityDescription = ({ opportunityData }: Props) => {
</a>
</p>
<p>
<a
href={`tel:${agency_phone_number_stripped}`}
>
<a href={`tel:${agency_phone_number_stripped}`}>
{opportunityData.summary.agency_phone_number}
</a>
</p>
Expand Down

0 comments on commit eba976f

Please sign in to comment.