Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update safe-action.ts

Steven Tey479263fe12e2
diff --git a/apps/web/lib/actions/safe-action.ts b/apps/web/lib/actions/safe-action.ts
index 08cafc1230..8a796293fb 100644
--- a/apps/web/lib/actions/safe-action.ts
+++ b/apps/web/lib/actions/safe-action.ts
@@ -64,7 +64,7 @@ export const authActionClient = actionClient.use(
},
});
- if (!workspace || !workspace.users) {
+ if (!workspace || !workspace.users || workspace.users.length === 0) {
throw new Error("Workspace not found.");
}