mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-10 05:06:15 -05:00
Fix 500 error when match page 404's Closes #760
This commit is contained in:
@@ -43,9 +43,13 @@ export const links: LinksFunction = () => {
|
||||
return [{ rel: "stylesheet", href: styles }];
|
||||
};
|
||||
|
||||
export const meta: MetaFunction = ({ data }: { data: LFGMatchLoaderData }) => {
|
||||
export const meta: MetaFunction = ({
|
||||
data,
|
||||
}: {
|
||||
data: Nullable<LFGMatchLoaderData>;
|
||||
}) => {
|
||||
return {
|
||||
title: data.isOwnMatch
|
||||
title: data?.isOwnMatch
|
||||
? makeTitle(
|
||||
`vs. ${listToUserReadableString(
|
||||
data.groups[1].members.map(
|
||||
|
||||
Reference in New Issue
Block a user