Ready for 1.1.3-rc.2 and migrating on nextjs 16

This commit is contained in:
charlesgauthereau
2025-11-03 12:32:00 +01:00
parent c62be9854a
commit 529f157c6e
16 changed files with 540 additions and 210 deletions
@@ -23,10 +23,10 @@ export const DeleteOrganizationButton = (props: DeleteOrganizationButtonProps) =
await authClient.organization.setActive({
organizationSlug: "default",
});
router.push("/");
toast.success(result.data.actionSuccess?.message || "Organization deleted.");
router.refresh()
refetch()
router.push("/");
} else {
// @ts-ignore
const errorMsg = result?.data?.actionError?.message || result?.data?.actionError?.messageParams?.message || "Failed to delete the organization.";