Skip to content

Commit

Permalink
fix: 2025년도 대회가 없어 발생하는 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
ohprettyhak committed Jan 6, 2025
1 parent c3337e7 commit 473f748
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/spectator/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { LeagueListType } from '@hcc/api';
import { Skeleton } from '@hcc/ui';
import { HydrationBoundary, dehydrate } from '@tanstack/react-query';
import dayjs from 'dayjs';
import { ReactElement } from 'react';

import Layout from '@/components/Layout';
Expand Down Expand Up @@ -42,7 +41,7 @@ type PageProps = {
};

export default async function Page({ searchParams }: PageProps) {
const year = Number(searchParams.year) || dayjs().year();
const year = 2024;
const queryClient = getQueryClient();
const leagues: LeagueListType[] = await useLeaguesPrefetch(year);
const inProgress =
Expand Down

0 comments on commit 473f748

Please sign in to comment.