The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix error message for duplicate invites
Steven Teye1d0ad656224
diff --git a/pages/api/projects/[slug]/invites/index.tsx b/pages/api/projects/[slug]/invites/index.tsxindex ff446ce14b..614652089d 100644--- a/pages/api/projects/[slug]/invites/index.tsx+++ b/pages/api/projects/[slug]/invites/index.tsx@@ -58,7 +58,7 @@ export default withProjectAuth(async (req, res, project, session) => {});return res.status(200).json({ message: "Invite sent" });} catch (error) {- return res.status(400).end(error);+ return res.status(400).end(error.message);}// DELETE /api/projects/[slug]/invites – delete a pending invite