Skip to content

Commit a624860

Browse files
committed
format
1 parent 0d546d3 commit a624860

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ import {
1313
} from '@stripe/stripe-js'
1414
import { Form } from '@ui/components/shadcn/ui/form'
1515
import { TAX_IDS } from 'components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.constants'
16-
import { resolveStoredTaxId, getEffectiveTaxCountry } from 'components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.utils'
16+
import {
17+
resolveStoredTaxId,
18+
getEffectiveTaxCountry,
19+
} from 'components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.utils'
1720
import type { CustomerAddress, CustomerTaxId } from 'data/organizations/types'
1821
import { getURL } from 'lib/helpers'
1922
import { Check, ChevronsUpDown } from 'lucide-react'

apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const BillingCustomerData = () => {
6767
tax_id_value: taxId?.value,
6868
tax_id_name: taxId
6969
? (resolveStoredTaxId(taxId.type, taxId.country, customerProfile?.address?.country)?.name ??
70-
'')
70+
'')
7171
: '',
7272
}),
7373
[customerProfile, taxId]

apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ export const getEffectiveTaxCountry = (taxId: TaxId): string =>
2020
*
2121
* When billingCountry is unavailable, falls back to the stored country.
2222
*/
23-
export const resolveStoredTaxId = (type: string, country: string, billingCountry?: string): TaxId | undefined => {
23+
export const resolveStoredTaxId = (
24+
type: string,
25+
country: string,
26+
billingCountry?: string
27+
): TaxId | undefined => {
2428
const candidates = TAX_IDS.filter((option) => option.type === type)
2529
const preferredCountry = billingCountry ?? country
2630

0 commit comments

Comments
 (0)