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 0 subvalue

Steven Tey5127c0efbc81
diff --git a/apps/web/app/app.dub.co/embed/referrals/activity.tsx b/apps/web/app/app.dub.co/embed/referrals/activity.tsx
index 4b48126e67..56e28fb16f 100644
--- a/apps/web/app/app.dub.co/embed/referrals/activity.tsx
+++ b/apps/web/app/app.dub.co/embed/referrals/activity.tsx
@@ -64,11 +64,11 @@ export function ReferralsEmbedActivity({
</span>
<span className="text-content-default text-base font-medium leading-none">
{nFormatter(value, { full: true })}{" "}
- {subValue && (
+ {subValue || subValue === 0 ? (
<span className="text-content-subtle text-xs">
({currencyFormatter(subValue / 100)})
</span>
- )}
+ ) : null}
</span>
</div>
<div className="xs:block hidden h-12">