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.

Update branding-form.tsx

Steven Teyc086717c1428
diff --git a/apps/web/ui/partners/groups/design/branding-form.tsx b/apps/web/ui/partners/groups/design/branding-form.tsx
index ddedcde698..0d40c5a990 100644
--- a/apps/web/ui/partners/groups/design/branding-form.tsx
+++ b/apps/web/ui/partners/groups/design/branding-form.tsx
@@ -1,5 +1,6 @@
"use client";
+import { parseActionError } from "@/lib/actions/parse-action-errors";
import { updateGroupBrandingAction } from "@/lib/actions/partners/update-group-branding";
import useGroup from "@/lib/swr/use-group";
import useWorkspace from "@/lib/swr/use-workspace";
@@ -221,7 +222,10 @@ function BrandingFormInner({
});
},
onError({ error }) {
- const message = error.serverError || "Failed to update application form.";
+ const message = parseActionError(
+ error,
+ "Failed to update application form.",
+ );
toast.error(message);
setError("root", { message });
},