From b2b846647dc85e40d0fcabf0c49af46f4d89e415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Fri, 24 Feb 2023 13:06:57 -0700 Subject: [PATCH] Update [type].tsx (#7387) --- apps/web/pages/[user]/[type].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx index b0094210c7..c583273caf 100644 --- a/apps/web/pages/[user]/[type].tsx +++ b/apps/web/pages/[user]/[type].tsx @@ -70,7 +70,8 @@ async function getUserPageProps(context: GetStaticPropsContext) { const user = await prisma.user.findUnique({ where: { - username, + /** TODO: We should standarize this */ + username: username.toLowerCase().replace(/( |%20)/g, "+"), }, select: { id: true,