Skip to content

Commit

Permalink
Update CarList.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Aug 25, 2024
1 parent 541edfb commit eca6dc8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/src/components/CarList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,11 @@ const CarList = ({
<span className="title-bookcars">{commonStrings.BOOKCARS}</span>
<span>{strings.TITLE_2}</span>
</div>
{totalRecords > 0 && (
<div className="car-count">
{`(${totalRecords} ${totalRecords === 1 ? strings.TITLE_CAR_AVAILABLE : strings.TITLE_CARS_AVAILABLE})`}
</div>
)}
<div className="car-count">
{`(${totalRecords} ${totalRecords === 1 ? strings.TITLE_CAR_AVAILABLE : strings.TITLE_CARS_AVAILABLE})`}
</div>
</div>

{rows.map((car) => (
<div key={car._id} className="car-list-container">
<div className="car-header">
Expand Down

0 comments on commit eca6dc8

Please sign in to comment.