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 brandcolor

Steven Teyc241791a6b28
diff --git a/apps/web/app/app.dub.co/embed/page-client.tsx b/apps/web/app/app.dub.co/embed/page-client.tsx
index 7b4a5ef84a..99cc45d0ae 100644
--- a/apps/web/app/app.dub.co/embed/page-client.tsx
+++ b/apps/web/app/app.dub.co/embed/page-client.tsx
@@ -61,7 +61,6 @@ export function ReferralsEmbedPageClient() {
const hasEnrolled = data?.programEnrollment;
const hasInvited = data?.programInvite;
- const color = program?.brandColor || "#8B5CF6";
if (!token) {
notFound();
@@ -75,7 +74,9 @@ export function ReferralsEmbedPageClient() {
return (
<>
<div className="relative flex flex-col rounded-lg border border-neutral-300 bg-gradient-to-r from-neutral-50 p-4 md:p-6">
- {program && <HeroBackground logo={program?.logo} color={color} />}
+ {program && (
+ <HeroBackground logo={program?.logo} color={program?.brandColor} />
+ )}
<span className="flex items-center gap-2 text-sm text-neutral-500">
<MoneyBill2 className="size-4" />
@@ -126,7 +127,7 @@ export function ReferralsEmbedPageClient() {
start: start ? new Date(start) : undefined,
end: end ? new Date(end) : undefined,
interval,
- color,
+ color: program?.brandColor ?? undefined,
}}
>
<div className="mt-6 rounded-lg border border-neutral-300">