Skip to content

Commit

Permalink
WCMS-21773: Updated contact email address in additional information t…
Browse files Browse the repository at this point in the history
…able to be clickable. (#235)
  • Loading branch information
brentonkelly1982 authored Aug 2, 2024
1 parent 90c066c commit 2be6751
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/assets/metadataMapping.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ export const defaultMetadataMapping = {
rows.push({ label: 'Contact', value: data.fn });
}
if (data.hasEmail) {
rows.push({ label: 'Contact Email', value: data.hasEmail });
rows.push({
label: 'Contact Email',
value: (
<a href={data.hasEmail.includes("mailto:") ? data.hasEmail : `mailto:${data.hasEmail}`}>{data.hasEmail.replace("mailto:", "")}</a>
)
});
}
return rows;
},
Expand Down

0 comments on commit 2be6751

Please sign in to comment.