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.

fix generateSupportTitle

Steven Tey4da11b9b69f6
diff --git a/apps/web/ui/layout/help/contact-form.tsx b/apps/web/ui/layout/help/contact-form.tsx
index a568b17c42..86878b5d80 100644
--- a/apps/web/ui/layout/help/contact-form.tsx
+++ b/apps/web/ui/layout/help/contact-form.tsx
@@ -165,7 +165,8 @@ export function ContactForm({
for await (const delta of readStreamableValue(output)) {
setData((prev) => ({
...prev,
- title: prev.title + delta,
+ // if prev.title is not null, append the delta to it
+ title: prev.title ? prev.title + delta : delta,
}));
}
}