From 4ac2740942de9e76bb98ee10a83ee1871035dc27 Mon Sep 17 00:00:00 2001 From: SD Date: Thu, 17 Oct 2024 13:22:22 +0400 Subject: [PATCH] fix: fix sessions path --- src/app/[locale]/account/(simple)/sessions/page.ts | 2 +- src/components/Page/Header/HeaderAuthLinks.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/[locale]/account/(simple)/sessions/page.ts b/src/app/[locale]/account/(simple)/sessions/page.ts index 18c8a76..812e262 100644 --- a/src/app/[locale]/account/(simple)/sessions/page.ts +++ b/src/app/[locale]/account/(simple)/sessions/page.ts @@ -8,5 +8,5 @@ import { SessionType } from '../../../../../types/sessions'; export default function SessionsMainPage() { const [token] = useLocalStorage(AUTH_TOKEN_KEY, ''); - return token ? redirect(SessionType.UPCOMING) : null; + return token ? redirect(`sessions/${SessionType.UPCOMING}`) : null; }; diff --git a/src/components/Page/Header/HeaderAuthLinks.tsx b/src/components/Page/Header/HeaderAuthLinks.tsx index d8e3d5e..8d0fc7a 100644 --- a/src/components/Page/Header/HeaderAuthLinks.tsx +++ b/src/components/Page/Header/HeaderAuthLinks.tsx @@ -38,7 +38,7 @@ function HeaderAuthLinks ({ return token ? (
  • - + {i18nText('account', locale)}