Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(rewards): handle missing coupon data in referral and coupon sections

Steven Enamakel06d122ed7238
diff --git a/app/src/components/rewards/ReferralRewardsSection.tsx b/app/src/components/rewards/ReferralRewardsSection.tsx
index 4309ebb5e6..c75ac9c7bc 100644
--- a/app/src/components/rewards/ReferralRewardsSection.tsx
+++ b/app/src/components/rewards/ReferralRewardsSection.tsx
@@ -165,17 +165,6 @@ const ReferralRewardsSection = () => {
return (
<div className="space-y-4">
<div className="bg-surface rounded-2xl shadow-soft border border-line p-6 space-y-6">
- <div className="flex flex-col gap-3 md:flex-row md:items-start md:justify-between">
- <div className="space-y-2">
- <h2 className="text-2xl font-semibold text-content">
- {t('rewards.referralSection.title')}
- </h2>
- <p className="text-sm text-content-secondary max-w-xl">
- {t('rewards.referralSection.subtitle')}
- </p>
- </div>
- </div>
-
{loading && !stats ? (
<p className="text-sm text-content-muted">{t('rewards.referralSection.loading')}</p>
) : null}
diff --git a/app/src/components/rewards/RewardsCouponSection.tsx b/app/src/components/rewards/RewardsCouponSection.tsx
index c40606e3bb..07005c611c 100644
--- a/app/src/components/rewards/RewardsCouponSection.tsx
+++ b/app/src/components/rewards/RewardsCouponSection.tsx
@@ -142,11 +142,6 @@ const RewardsCouponSection = () => {
return (
<>
<section className="bg-surface rounded-2xl shadow-soft border border-line p-6 space-y-5">
- <div className="space-y-2">
- <h2 className="text-2xl font-semibold text-content">{t('rewards.coupon.title')}</h2>
- <p className="max-w-2xl text-sm text-content-secondary">{t('rewards.coupon.subtitle')}</p>
- </div>
-
<div className="grid gap-4 sm:grid-cols-2">
<div className="rounded-xl border border-line bg-surface-muted p-4">
<div className="text-xs font-medium uppercase tracking-wide text-content-faint">