fix: Delete account to signup page (#4162)

Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
This commit is contained in:
Gourav Thakur
2024-11-05 12:57:32 +05:30
committed by GitHub
parent 74bd40e0ff
commit 0c37956943

View File

@@ -10,6 +10,7 @@ import { gethasNoOrganizations } from "@formbricks/lib/instance/service";
import { getOrganizationsByUserId } from "@formbricks/lib/organization/service";
import { getUser } from "@formbricks/lib/user/service";
import { AuthenticationError } from "@formbricks/types/errors";
import { ClientLogout } from "@formbricks/ui/components/ClientLogout";
import { CreateOrganization } from "./components/CreateOrganization";
export const metadata: Metadata = {
@@ -25,7 +26,7 @@ const Page = async () => {
const user = await getUser(session.user.id);
if (!user) {
throw new Error(t("common.user_not_found"));
return <ClientLogout />;
}
const hasNoOrganizations = await gethasNoOrganizations();