8000 fix · anshvert/TheAlgorithms-Website@9e1952d · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e1952d

Browse files
committed
fix
1 parent 03dd7a9 commit 9e1952d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/language/[language].tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { OpenInNew } from "@material-ui/icons";
1111
import { GetStaticPaths, GetStaticProps } from "next";
1212
import useTranslation from "hooks/translation";
1313
import { shouldUseISR } from "lib/aws";
14+
import { Algorithm } from "lib/models";
1415
import classes from "./style.module.css";
1516

1617
export default function LanguagePage({
@@ -60,7 +61,7 @@ export default function LanguagePage({
6061
<AlgorithmsList
6162
algorithms={language.algorithms.map((algorithm) => ({
6263
...algorithm,
63-
slug: algorithm.slug + "?lang=" + languageKey,
64+
slug: `${algorithm.slug}?lang=${languageKey}`,
6465
}))}
6566
/>
6667
</Section>

0 commit comments

Comments
 (0)
0