Skip to content

Commit bacfaff

Browse files
authored
fix mastodon (#621)
1 parent 3eb4665 commit bacfaff

File tree

1 file changed

+1
-1
lines changed
  • src/components/EventDialog/Speaker

1 file changed

+1
-1
lines changed

src/components/EventDialog/Speaker/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const Speaker = (props) => {
7777
mastodon.split('@').length > 1
7878
? (
7979
<a
80-
href={`https://${mastodon.split('@')[1]}/@${mastodon.split('@')[0]}`}
80+
href={`https://${mastodon.split('@').filter(part => part !== '')[1]}/@${mastodon.split('@').filter(part => part !== '')[0]}`}
8181
target="_blank"
8282
className={classnames(
8383
styles.Icon,

0 commit comments

Comments
 (0)