From 0a849bd9c577970e08db1b8a57ce83a86b6f52f8 Mon Sep 17 00:00:00 2001 From: zias Date: Wed, 11 Mar 2026 11:26:38 +0100 Subject: [PATCH] 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. --- apps/web/src/routes/account.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/src/routes/account.tsx b/apps/web/src/routes/account.tsx index 04a2abb..cf1afa7 100644 --- a/apps/web/src/routes/account.tsx +++ b/apps/web/src/routes/account.tsx @@ -203,7 +203,13 @@ function AccountPage() { )} - + {/* 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) && ( + + )} {/* Name */}