website refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { LeagueSchedulePageQuery } from '@/lib/page-queries/page-queries/LeagueSchedulePageQuery';
|
||||
import { LeagueSchedulePageQuery } from '@/lib/page-queries/LeagueSchedulePageQuery';
|
||||
import { LeagueScheduleTemplate } from '@/templates/LeagueScheduleTemplate';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
@@ -17,7 +17,7 @@ export default async function LeagueSchedulePage({ params }: Props) {
|
||||
|
||||
if (result.isErr()) {
|
||||
const error = result.getError();
|
||||
if (error.type === 'notFound') {
|
||||
if (error === 'notFound') {
|
||||
notFound();
|
||||
}
|
||||
// For serverError, show the template with empty data
|
||||
|
||||
Reference in New Issue
Block a user