mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 05:09:12 +03:00
use type
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -47,6 +47,7 @@ import {
|
||||
getEffectiveTaxCountry,
|
||||
resolveStoredTaxId,
|
||||
} from '@/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.utils'
|
||||
import { PurchasingAs } from '@/components/interfaces/Organization/BillingSettings/BillingCustomerData/useBillingCustomerDataForm'
|
||||
import type { CustomerAddress, CustomerTaxId } from '@/data/organizations/types'
|
||||
import { getURL } from '@/lib/helpers'
|
||||
|
||||
@@ -145,7 +146,7 @@ export const NewPaymentMethodElement = forwardRef(
|
||||
const taxIdValue = rawTaxIdValue?.trim() ?? ''
|
||||
const selectedTaxId = TAX_IDS.find((option) => option.name === tax_id_name)
|
||||
|
||||
const [purchasingAs, setPurchasingAs] = useState<'individual' | 'business'>(
|
||||
const [purchasingAs, setPurchasingAs] = useState<PurchasingAs>(
|
||||
currentTaxId != null ? 'business' : 'individual'
|
||||
)
|
||||
const purchasingAsBusiness = purchasingAs === 'business'
|
||||
|
||||
Reference in new issue
Block a user