From b38991fd25af5df72426eac25aa4a3c77ecc80c8 Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 17 Jun 2022 10:06:49 -0600 Subject: [PATCH] Fixes 404 for trial users --- apps/web/pages/[user]/[type].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx index e47c47039a..dbfcc154d9 100644 --- a/apps/web/pages/[user]/[type].tsx +++ b/apps/web/pages/[user]/[type].tsx @@ -84,7 +84,7 @@ async function getUserPageProps({ username, slug }: { username: string; slug: st where: { slug, /* Free users can only display their first eventType */ - id: user.plan === UserPlan.PRO ? undefined : eventTypeIds[0], + id: user.plan === UserPlan.FREE ? eventTypeIds[0] : undefined, AND: [{ OR: [{ userId: user.id }, { users: { some: { id: user.id } } }] }], }, // Order is important to ensure that given a slug if there are duplicates, we choose the same event type consistently when showing in event-types list UI(in terms of ordering and disabled event types)