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.

use "up to" notation

Steven Tey61f90ff11571
diff --git a/apps/web/lib/api/sales/construct-reward-amount.ts b/apps/web/lib/api/sales/construct-reward-amount.ts
index 7aa9303f39..d7987dd42d 100644
--- a/apps/web/lib/api/sales/construct-reward-amount.ts
+++ b/apps/web/lib/api/sales/construct-reward-amount.ts
@@ -38,9 +38,9 @@ export const constructRewardAmount = (
);
if (min !== max) {
- return reward.type === "percentage"
- ? `${min}% - ${max}%`
- : `${formatCurrency(min / 100)} - ${formatCurrency(max / 100)}`;
+ return `Up to ${
+ reward.type === "percentage" ? `${max}%` : formatCurrency(max / 100)
+ }`;
}
}
}
diff --git a/apps/web/ui/partners/program-reward-description.tsx b/apps/web/ui/partners/program-reward-description.tsx
index 8986403f97..fb2f1fe58d 100644
--- a/apps/web/ui/partners/program-reward-description.tsx
+++ b/apps/web/ui/partners/program-reward-description.tsx
@@ -25,7 +25,9 @@ export function ProgramRewardDescription({
? reward.description || (
<>
Earn{" "}
- <strong className={cn("font-semibold", amountClassName)}>
+ <strong
+ className={cn("font-semibold lowercase", amountClassName)}
+ >
{constructRewardAmount(reward)}{" "}
</strong>
{reward.event === "sale" && reward.maxDuration === 0 ? (