Skip to content

Commit

Permalink
[Agency Dashboards] Adjust "records" to record when there is only one…
Browse files Browse the repository at this point in the history
… published record (#1340)

* Adjust plural records to record when there is one published record

* Spacing

---------

Co-authored-by: Mahmoud <mahmoud@Mahmouds-MacBook-Pro.local>
  • Loading branch information
mxosman and Mahmoud committed May 22, 2024
1 parent 46fcacf commit d67fe11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agency-dashboard/src/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export const Home = observer(() => {
>
<Styled.AgencyName>{agency.name}</Styled.AgencyName>
<Styled.NumberOfPublishedMetrics>
<span>{agency.number_of_published_records}</span> published
records
<span>{agency.number_of_published_records}</span> published{" "}
{agency.number_of_published_records === 1 ? "record" : "records"}
</Styled.NumberOfPublishedMetrics>
</Styled.AgencyDetailsWrapper>
))}
Expand Down

0 comments on commit d67fe11

Please sign in to comment.