Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Seats remaining to be 0 if no purchased quota

Richie McIlroy028a29ef3d11
diff --git a/apps/web/app/dashboard/settings/workspace/Workspace.tsx b/apps/web/app/dashboard/settings/workspace/Workspace.tsx
index a1bf510e7..930615eb9 100644
--- a/apps/web/app/dashboard/settings/workspace/Workspace.tsx
+++ b/apps/web/app/dashboard/settings/workspace/Workspace.tsx
@@ -164,7 +164,8 @@ export const Workspace = () => {
<p>
Seats Remaining
<span className="ml-2 font-bold text-gray-500">
- {activeSpace?.inviteQuota ?? 1 - (activeSpace?.totalInvites ?? 1)}
+ {(activeSpace?.inviteQuota ?? 1) -
+ (activeSpace?.totalInvites ?? 0)}
</span>
</p>
</Card>
@@ -245,7 +246,7 @@ export const Workspace = () => {
<div className="space-y-1">
<Label htmlFor="customDomain">Custom Domain</Label>
<CardDescription className="w-full max-w-[400px]">
- Set up a custom domain for your workspace’s shared caps and make
+ Set up a custom domain for your workspace's shared caps and make
it unique.
</CardDescription>
</div>