Survey at account deletion (#1561)
* redirect to /cancellation * relative path * base URL check added
This commit is contained in:
parent
b75e384a2d
commit
e52e1e3e23
1 changed files with 5 additions and 2 deletions
|
@ -124,8 +124,11 @@ function SettingsView(props: ComponentProps<typeof Settings> & { localeProp: str
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.error(`Error Removing user: ${props.user.id}, email: ${props.user.email} :`, e);
|
console.error(`Error Removing user: ${props.user.id}, email: ${props.user.email} :`, e);
|
||||||
});
|
});
|
||||||
// signout;
|
if (process.env.NEXT_PUBLIC_BASE_URL === "https://app.cal.com") {
|
||||||
signOut({ callbackUrl: "/auth/logout" });
|
signOut({ callbackUrl: "https://cal.com/cancellation" });
|
||||||
|
} else {
|
||||||
|
signOut({ callbackUrl: "/auth/logout" });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const localeOptions = useMemo(() => {
|
const localeOptions = useMemo(() => {
|
||||||
|
|
Loading…
Reference in a new issue