fix: wrong link in top menu when clicking first name

This commit is contained in:
Tobias Johansson
2024-08-27 11:09:21 +02:00
parent 68aa6e565d
commit cd3d805bf0

View File

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