Skip to content

Commit

Permalink
ensureProtocol in SocialItems
Browse files Browse the repository at this point in the history
SocialItems component uses <a href> instead of <AnchorButton>, so a separate fix is needed here
  • Loading branch information
filwas committed Sep 12, 2024
1 parent e427911 commit 8ac4b77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/platform-app/src/components/SocialItems/SocialItems.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GithubIcon2, LinkedIn } from '@gdh/ui-system/icons'
import { ensureProtocol } from '@/utils/routes'

import styles from './SocialItems.module.scss'

Expand Down Expand Up @@ -27,7 +28,7 @@ export default function SocialItems({
<div className={styles.socialItem}>
<a
className={styles.socialLink}
href={linkedIn || ''}
href={ensureProtocol(linkedIn)}
target="_blank"
rel="noopener noreferrer"
>
Expand Down

0 comments on commit 8ac4b77

Please sign in to comment.