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.

Show an error when magic-link login fails instead of a success toast.

Kiran Ka655c92d425c
diff --git a/apps/web/ui/auth/login/email-sign-in.tsx b/apps/web/ui/auth/login/email-sign-in.tsx
index 2a622ea4db..8611da49d0 100644
--- a/apps/web/ui/auth/login/email-sign-in.tsx
+++ b/apps/web/ui/auth/login/email-sign-in.tsx
@@ -100,7 +100,7 @@ export const EmailSignIn = ({ next }: { next?: string }) => {
return;
}
- if (!response.ok && response.error) {
+ if (response.error) {
if (errorCodes[response.error]) {
toast.error(errorCodes[response.error]);
} else {