Skip to content

Commit

Permalink
fix link format
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Aug 16, 2024
1 parent 044ada2 commit 8374eb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/react/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ export default ({
bottomRightLinks
}: Props) => {
if (!bottomRightLinks?.trim()) bottomRightLinks = undefined
const linksParsed = bottomRightLinks?.split(';').map(l => l.split(':')) as Array<[string, string]> | undefined
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const linksParsed = bottomRightLinks?.split(';').map(l => {
const parts = l.split(':')
return [parts[0], parts.slice(1).join(':')]
}) as Array<[string, string]> | undefined

return (
<div className={styles.root}>
Expand Down

0 comments on commit 8374eb6

Please sign in to comment.