Billing rework
All checks were successful
Build and Push / build (push) Successful in 1m29s

This commit is contained in:
2026-05-02 00:41:12 +02:00
parent 2c1e7af797
commit b023c068eb
5 changed files with 14 additions and 5 deletions

View File

@@ -33,7 +33,12 @@ export default async function SettingsPage() {
key: "billing",
href: "/settings/billing",
title: t("billingTitle"),
description: t("billingDescription"),
// Personal customers (B2C) don't have a VAT number; the
// description shouldn't mention one. Same pattern used in the
// form itself (label/field gating).
description: user.isPersonal
? t("billingDescriptionPersonal")
: t("billingDescription"),
// Owners and platform admins can edit billing. `user` role
// can't even view it — billing details aren't useful to them.
visible: canMutate(user),