fix: remove spaces in phone number in link because of bad schema

This commit is contained in:
Christian Andolf
2024-10-25 15:52:13 +02:00
committed by Christian Andolf
parent 0efa52ada5
commit c5fa407dee

View File

@@ -51,7 +51,7 @@ export default function Alert({
<span> {phoneContact.displayText} </span>
<Link
color="burgundy"
href={`tel:${phoneContact.phoneNumber}`}
href={`tel:${phoneContact.phoneNumber.replace(/ /g, "")}`}
>
{phoneContact.phoneNumber}
</Link>