feat: add error code check

This commit is contained in:
Nicholas Tindle
2025-10-17 23:33:31 -05:00
parent 65f2c04ef1
commit e3137382c3

View File

@@ -10,6 +10,8 @@
export function isWaitlistError(error: any): boolean {
if (!error?.message) return false;
if (error?.code === "P0001") return true;
return (
error.message.includes("P0001") || // PostgreSQL custom error code
error.message.includes("not allowed to register") || // Trigger message