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:
@@ -203,7 +203,13 @@ function AccountPage() {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{/* 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} />
|
<PaymentBadge status={registration.paymentStatus} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Name */}
|
{/* Name */}
|
||||||
|
|||||||
Reference in New Issue
Block a user