The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add fallback toast messages when email change actions fail.
Kiran Kc003cde3e6b0
diff --git a/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page-client.tsx b/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page-client.tsxindex 65eb445aae..16d3caf5fe 100644--- a/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page-client.tsx+++ b/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page-client.tsx@@ -42,7 +42,7 @@ export default function ConfirmEmailChangePageClient({router.replace(redirectTo);},onError({ error }) {- toast.error(error.serverError);+ toast.error(error.serverError ?? "Failed to confirm the email change.");},});@@ -53,7 +53,9 @@ export default function ConfirmEmailChangePageClient({setCanceled(true);},onError({ error }) {- toast.error(error.serverError);+ toast.error(+ error.serverError ?? "Failed to cancel the email change request.",+ );},},);