fix: fix sessions path

This commit is contained in:
SD 2024-10-17 13:22:22 +04:00
parent be7efc0d32
commit 4ac2740942
2 changed files with 2 additions and 2 deletions

View File

@ -8,5 +8,5 @@ import { SessionType } from '../../../../../types/sessions';
export default function SessionsMainPage() { export default function SessionsMainPage() {
const [token] = useLocalStorage(AUTH_TOKEN_KEY, ''); const [token] = useLocalStorage(AUTH_TOKEN_KEY, '');
return token ? redirect(SessionType.UPCOMING) : null; return token ? redirect(`sessions/${SessionType.UPCOMING}`) : null;
}; };

View File

@ -38,7 +38,7 @@ function HeaderAuthLinks ({
return token return token
? ( ? (
<li> <li>
<Link href={'/account/sessions/upcoming' as any} className={pathname === 'account' ? 'active' : ''}> <Link href={'/account/sessions' as any} className={pathname === 'account' ? 'active' : ''}>
{i18nText('account', locale)} {i18nText('account', locale)}
</Link> </Link>
</li> </li>