Skip to content

Commit 8374eb6

Browse files
committed
fix link format
1 parent 044ada2 commit 8374eb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/react/MainMenu.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ export default ({
3939
bottomRightLinks
4040
}: Props) => {
4141
if (!bottomRightLinks?.trim()) bottomRightLinks = undefined
42-
const linksParsed = bottomRightLinks?.split(';').map(l => l.split(':')) as Array<[string, string]> | undefined
42+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
43+
const linksParsed = bottomRightLinks?.split(';').map(l => {
44+
const parts = l.split(':')
45+
return [parts[0], parts.slice(1).join(':')]
46+
}) as Array<[string, string]> | undefined
4347

4448
return (
4549
<div className={styles.root}>

0 commit comments

Comments
 (0)