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-modifiers-tooltip.tsx

Kiran K3a182d2a0c48
diff --git a/apps/web/ui/partners/program-reward-modifiers-tooltip.tsx b/apps/web/ui/partners/program-reward-modifiers-tooltip.tsx
index 45f8779207..6e2efe9c18 100644
--- a/apps/web/ui/partners/program-reward-modifiers-tooltip.tsx
+++ b/apps/web/ui/partners/program-reward-modifiers-tooltip.tsx
@@ -230,6 +230,6 @@ const RewardItem = ({
function formatSubscriptionDuration(v: number): string {
return formatDuration(
- v % 12 === 0 && v > 0 ? { years: v / 12 } : { months: v },
+ v >= 12 ? { years: Math.floor(v / 12), months: v % 12 } : { months: v },
);
}