Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): refresh billing state after failed seat update

Richie McIlroy1f6be344abfe
diff --git a/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsx b/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsx
index c86bb5bd1..5f6912e57 100644
--- a/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsx
+++ b/apps/web/app/(org)/dashboard/settings/organization/components/SeatManagementCard.tsx
@@ -121,6 +121,10 @@ export function SeatManagementCard() {
toast.error(
error instanceof Error ? error.message : "Failed to update seats",
);
+ queryClient.invalidateQueries({
+ queryKey: ["subscription-details", organizationId],
+ });
+ router.refresh();
},
});