Skip to content

Commit

Permalink
[DEV-19087] Used website.hostname for website name
Browse files Browse the repository at this point in the history
  • Loading branch information
fgyimah committed Feb 4, 2025
1 parent 7f4fa9f commit 544acad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/ContactCard/ContactCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar,
{website && isCard && (
<a href={website.toString()} className={styles.link} title="Website">
<IconGlobe width={16} height={16} className={styles.icon} />
<span className={styles.linkText}>
{website.toString().replace(/(^\w+:|^)\/\//, '')}
</span>
<span className={styles.linkText}>{website.hostname}</span>
</a>
)}
{facebook && (
Expand Down

0 comments on commit 544acad

Please sign in to comment.