Add Mollie checkout flow, billing UI, and payment UX polish #71
@@ -63,9 +63,9 @@ export default function PlanSummary({ plan, interval, limit, country, vatId, onC
|
|||||||
fetchVAT(country, verifiedVatId, currentInterval)
|
fetchVAT(country, verifiedVatId, currentInterval)
|
||||||
}, [country, currentInterval, fetchVAT, verifiedVatId])
|
}, [country, currentInterval, fetchVAT, verifiedVatId])
|
||||||
|
|
||||||
// Clear verified state when VAT ID input changes
|
// Clear verified state when VAT ID input changes after a successful verification
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (vatId !== verifiedVatId) {
|
if (verifiedVatId !== '' && vatId !== verifiedVatId) {
|
||||||
setVerifiedVatId('')
|
setVerifiedVatId('')
|
||||||
// Re-fetch without VAT ID to show the 21% rate
|
// Re-fetch without VAT ID to show the 21% rate
|
||||||
if (country) fetchVAT(country, '', currentInterval)
|
if (country) fetchVAT(country, '', currentInterval)
|
||||||
|
|||||||
Reference in New Issue
Block a user