Skip to content

Commit

Permalink
fix(ParkingAmenity): Phone number and website only show if available
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed Oct 5, 2023
1 parent 2cd9658 commit 48bcfbd
Showing 1 changed file with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,25 @@ const getModalContent = (
<li>Managed by {park.manager.name}</li>
)}
<ul>
<li>
Visit{" "}
<a href={`${park.manager.url}`}>
{park.manager.contact
? park.manager.contact
: null}{" "}
website
</a>
</li>
<li>
Call{" "}
<a href={`tel:${park.manager.phone}`}>
{park.manager.phone}
</a>
</li>
{park.manager.url && (
<li>
Visit{" "}
<a href={`${park.manager.url}`}>
{park.manager.contact
? park.manager.contact
: null}{" "}
website
</a>
</li>
)}
{park.manager.phone && (
<li>
Call{" "}
<a href={`tel:${park.manager.phone}`}>
{park.manager.phone}
</a>
</li>
)}
</ul>
</>
)}
Expand Down

0 comments on commit 48bcfbd

Please sign in to comment.