fix: Hide payment badge for performers with no payment obligation

Performers have nothing to pay unless they added a voluntary gift.
Only show PaymentBadge when registrationType is 'watcher' or giftAmount
> 0.
This commit is contained in:
2026-03-11 11:26:38 +01:00
parent 17c6315dad
commit 0a849bd9c5

View File

@@ -203,7 +203,13 @@ function AccountPage() {
</span>
)}
</div>
<PaymentBadge status={registration.paymentStatus} />
{/* Only show a payment badge when there's actually something to pay:
watchers always have a drinkcard fee; anyone with a gift amount does too.
Performers with no gift have nothing to pay → hide the badge. */}
{(registration.registrationType === "watcher" ||
(registration.giftAmount ?? 0) > 0) && (
<PaymentBadge status={registration.paymentStatus} />
)}
</div>
{/* Name */}