Redirect from select plan if you’ve got v3 enabled

This commit is contained in:
Matt Aitken
2024-06-26 17:04:20 +01:00
parent dcb0680228
commit a327114dc0
@@ -32,6 +32,10 @@ export async function loader({ params, request }: LoaderFunctionArgs) {
throw new Response(null, { status: 404, statusText: "Organization not found" });
}
if (organization.v3Enabled) {
return redirect(organizationPath({ slug: organizationSlug }));
}
const currentPlan = await billingPresenter.currentPlan(organization.id);
return typedjson({ ...plans, ...currentPlan, organizationSlug });