Skip to content

Scheduling infrastructure for absolutely everyone.

Survey at account deletion (#1561)

Syed Ali Shahbaze52e1e3e23cf
diff --git a/pages/settings/profile.tsx b/pages/settings/profile.tsx
index aff6608d001..c7ffa9e48f6 100644
--- a/pages/settings/profile.tsx
+++ b/pages/settings/profile.tsx
@@ -124,8 +124,11 @@ function SettingsView(props: ComponentProps<typeof Settings> & { localeProp: str
}).catch((e) => {
console.error(`Error Removing user: ${props.user.id}, email: ${props.user.email} :`, e);
});
- // signout;
- signOut({ callbackUrl: "/auth/logout" });
+ if (process.env.NEXT_PUBLIC_BASE_URL === "https://app.cal.com") {
+ signOut({ callbackUrl: "https://cal.com/cancellation" });
+ } else {
+ signOut({ callbackUrl: "/auth/logout" });
+ }
};
const localeOptions = useMemo(() => {