diff --git a/app/checkout/page.tsx b/app/checkout/page.tsx index 250653b..55fcb35 100644 --- a/app/checkout/page.tsx +++ b/app/checkout/page.tsx @@ -123,6 +123,8 @@ function CheckoutContent() { const searchParams = useSearchParams() const { user, loading: authLoading } = useAuth() const { data: subscription } = useSubscription() + const [country, setCountry] = useState('') + const [vatId, setVatId] = useState('') const status = searchParams.get('status') const plan = searchParams.get('plan') @@ -170,8 +172,6 @@ function CheckoutContent() { const planId = plan! const billingInterval = interval as 'month' | 'year' const pageviewLimit = Number(limit) - const [country, setCountry] = useState('') - const [vatId, setVatId] = useState('') return (
Billed as €{(parseFloat(vatResult.total_amount) * 12).toFixed(2)}/year
+€{(parseFloat(vatResult.total_amount) / 12).toFixed(2)}/mo
)} ) : null}