Survey at account deletion (#1561)
* redirect to /cancellation * relative path * base URL check added
This commit is contained in:
1 parent
b75e384a2d
commit
e52e1e3e23
1 file changed
+5
-2
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user