From 9656225b60739631528da83f93fc4e29a3b6d45a Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 27 Mar 2026 12:37:08 +0100 Subject: [PATCH] fix: eliminate double VIES call on Verify click Let the verifiedVatId useEffect handle the fetch instead of calling fetchVAT directly in handleVerifyVatId. Prevents VIES MS_MAX_CONCURRENT_REQ rate limiting. --- components/checkout/PlanSummary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/checkout/PlanSummary.tsx b/components/checkout/PlanSummary.tsx index ec77686..ee26698 100644 --- a/components/checkout/PlanSummary.tsx +++ b/components/checkout/PlanSummary.tsx @@ -75,7 +75,7 @@ export default function PlanSummary({ plan, interval, limit, country, vatId, onC const handleVerifyVatId = () => { if (!vatId || !country) return setVerifiedVatId(vatId) - fetchVAT(country, vatId, currentInterval) + // useEffect on verifiedVatId will trigger the fetch } const isVatChecked = verifiedVatId !== '' && verifiedVatId === vatId