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 reward display condition to only show when amount is greater than zero

Kiran Ke465e6ede991
diff --git a/apps/web/ui/partners/program-reward-description.tsx b/apps/web/ui/partners/program-reward-description.tsx
index 1f22dbe077..65ecf21442 100644
--- a/apps/web/ui/partners/program-reward-description.tsx
+++ b/apps/web/ui/partners/program-reward-description.tsx
@@ -15,7 +15,7 @@ export function ProgramRewardDescription({
}) {
return (
<>
- {reward ? (
+ {reward && reward.amount > 0 ? (
<>
Earn{" "}
<strong className={cn("font-semibold", amountClassName)}>