The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update program-reward-description.tsx
Kiran Kcf4e40282bd4
diff --git a/apps/web/ui/partners/program-reward-description.tsx b/apps/web/ui/partners/program-reward-description.tsxindex f88df16c6d..6fdd6e959c 100644--- a/apps/web/ui/partners/program-reward-description.tsx+++ b/apps/web/ui/partners/program-reward-description.tsx@@ -71,15 +71,12 @@ export function ProgramRewardDescription({export function formatRewardDescription({reward,}: {- reward?: RewardProps | null;+ reward: RewardProps;}): string {const parts: string[] = [];- if (reward && reward.amount > 0) {- let rewardText = `Earn ${constructRewardAmount({- amount: reward.amount,- type: reward.type,- })} for each ${reward.event}`;+ if (reward.amount > 0) {+ let rewardText = `Earn ${constructRewardAmount(reward)} for each ${reward.event}`;if (reward.maxDuration === null) {rewardText += ` for the customer's lifetime.`;