Skip to content

Scheduling infrastructure for absolutely everyone.

Update [type].tsx (#7387)

Omar Lópezb2b846647dc8
diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx
index b0094210c7c..c583273caf2 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,