fix: hide VAT warning during loading and when VAT is valid

Warning no longer flashes during VIES lookup or shows alongside
company info for Belgian B2B (valid VAT but not exempt).
This commit is contained in:
Usman Baig
2026-03-27 12:48:51 +01:00
parent 3306508bf0
commit a55f9a91bd

View File

@@ -170,7 +170,7 @@ export default function PlanSummary({ plan, interval, limit, country, vatId, onC
</div> </div>
</motion.div> </motion.div>
)} )}
{isVatChecked && vatResult && !vatResult.vat_exempt && ( {isVatChecked && !vatLoading && !isVatValid && vatResult && !vatResult.vat_exempt && (
<motion.p <motion.p
initial={{ opacity: 0 }} initial={{ opacity: 0 }}
animate={{ opacity: 1 }} animate={{ opacity: 1 }}