fix: show Verified for valid VAT IDs regardless of exemption

Use company_name presence to determine validity instead of
vat_exempt, so Belgian B2B shows Verified + company info
even though 21% VAT still applies.
This commit is contained in:
Usman Baig
2026-03-27 12:43:59 +01:00
parent cb7e4c7c98
commit 3306508bf0

View File

@@ -84,7 +84,7 @@ export default function PlanSummary({ plan, interval, limit, country, vatId, onC
} }
const isVatChecked = verifiedVatId !== '' && verifiedVatId === vatId const isVatChecked = verifiedVatId !== '' && verifiedVatId === vatId
const isVatValid = isVatChecked && vatResult?.vat_exempt === true const isVatValid = isVatChecked && !!vatResult?.company_name
return ( return (
<div className="rounded-2xl border border-neutral-800 bg-neutral-900/50 backdrop-blur-xl p-5 space-y-4"> <div className="rounded-2xl border border-neutral-800 bg-neutral-900/50 backdrop-blur-xl p-5 space-y-4">