From 4add4df08ead7a144ec7370f43db64c1ed08014b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Mon, 19 Jun 2023 10:34:31 -0700 Subject: [PATCH] fix: regression of username case sensitivity (#9642) --- apps/web/pages/new-booker/[user]/[type].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/new-booker/[user]/[type].tsx b/apps/web/pages/new-booker/[user]/[type].tsx index 5eabd337b7..d74a879baf 100644 --- a/apps/web/pages/new-booker/[user]/[type].tsx +++ b/apps/web/pages/new-booker/[user]/[type].tsx @@ -101,7 +101,8 @@ async function getUserPageProps(context: GetServerSidePropsContext) { const ssr = await ssrInit(context); const user = await prisma.user.findFirst({ where: { - username, + /** TODO: We should standarize this */ + username: username.toLowerCase().replace(/( |%20)/g, "+"), organization: isValidOrgDomain ? { slug: currentOrgDomain,