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.

Update program-reward-list.tsx

Steven Teyaede7eeebafe
diff --git a/apps/web/ui/partners/program-reward-list.tsx b/apps/web/ui/partners/program-reward-list.tsx
index 7e73e503c9..ad7cd2910a 100644
--- a/apps/web/ui/partners/program-reward-list.tsx
+++ b/apps/web/ui/partners/program-reward-list.tsx
@@ -41,25 +41,28 @@ export function ProgramRewardList({
)}
</Item>
))}
- {discount &&
- (discount.description || (
- <Item icon={Gift}>
- {" "}
- New users get{" "}
- {constructRewardAmount({
- amount: discount.amount,
- type: discount.type,
- })}{" "}
- off{" "}
- {discount.maxDuration === null ? (
- <> for their lifetime</>
- ) : discount.maxDuration && discount.maxDuration > 1 ? (
- <>for {discount.maxDuration} months</>
- ) : (
- <>for their first purchase</>
- )}
- </Item>
- ))}
+ {discount && (
+ <Item icon={Gift}>
+ {discount.description || (
+ <>
+ {" "}
+ New users get{" "}
+ {constructRewardAmount({
+ amount: discount.amount,
+ type: discount.type,
+ })}{" "}
+ off{" "}
+ {discount.maxDuration === null ? (
+ <> for their lifetime</>
+ ) : discount.maxDuration && discount.maxDuration > 1 ? (
+ <>for {discount.maxDuration} months</>
+ ) : (
+ <>for their first purchase</>
+ )}
+ </>
+ )}
+ </Item>
+ )}
</ul>
);
}