The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix unnecessary error
Steven Tey7d39ed2dadf1
diff --git a/apps/web/app/app.dub.co/(auth)/login/form.tsx b/apps/web/app/app.dub.co/(auth)/login/form.tsxindex f3698a092b..4d0c8f1f20 100644--- a/apps/web/app/app.dub.co/(auth)/login/form.tsx+++ b/apps/web/app/app.dub.co/(auth)/login/form.tsx@@ -95,10 +95,11 @@ export default function LoginForm() {useEffect(() => {const error = searchParams?.get("error");- if (error && errorCodes[error]) {- toast.error(errorCodes[error]);- } else {- toast.error("An unexpected error occurred. Please try again later.");+ if (error) {+ toast.error(+ errorCodes[error] ||+ "An unexpected error occurred. Please try again later.",+ );}}, [searchParams]);