Merged in fix/remove-space-phone-number-link (pull request #776)

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

Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Matilda Landström
This commit is contained in:
Christian Andolf
2024-10-28 12:37:52 +00:00

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>