Merged in fix/wrong-firstname-link (pull request #517)

fix: wrong link in top menu when clicking first name

Approved-by: Michael Zetterberg
This commit is contained in:
Tobias Johansson
2024-08-27 10:20:00 +00:00
committed by Michael Zetterberg

View File

@@ -1,4 +1,5 @@
import { logout } from "@/constants/routes/handleAuth"
import { overview } from "@/constants/routes/myPages"
import { serverClient } from "@/lib/trpc/server"
import Link from "@/components/TempDesignSystem/Link"
@@ -47,7 +48,7 @@ export default async function TopMenu({
<>
{user ? (
<Link
href={logout[getLang()]}
href={overview[getLang()]}
className={styles.sessionLink}
prefetch={false}
>