From 34c8e456846760e11f3109de5bb110992a762b9b Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 1 Oct 2022 20:39:10 +0300 Subject: [PATCH] Fix user page crashing if invalid link --- app/routes/u.$identifier.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/routes/u.$identifier.tsx b/app/routes/u.$identifier.tsx index d323e558a..9f66e9793 100644 --- a/app/routes/u.$identifier.tsx +++ b/app/routes/u.$identifier.tsx @@ -23,6 +23,8 @@ export const links: LinksFunction = () => { }; export const meta: MetaFunction = ({ data }: { data: UserPageLoaderData }) => { + if (!data) return {}; + return { title: makeTitle(discordFullName(data)), };