Fix 500 error when match page 404's Closes #760

This commit is contained in:
Kalle
2022-02-24 01:01:05 +02:00
parent c01222b718
commit 436b44d2d8

View File

@@ -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(