website refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { LeagueStandingsPageQuery } from '@/lib/page-queries/page-queries/LeagueStandingsPageQuery';
|
||||
import { LeagueStandingsPageQuery } from '@/lib/page-queries/LeagueStandingsPageQuery';
|
||||
import { LeagueStandingsTemplate } from '@/templates/LeagueStandingsTemplate';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
@@ -17,7 +17,7 @@ export default async function Page({ 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