We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a624860 commit e523374Copy full SHA for e523374
1 file changed
apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/TaxID.utils.ts
@@ -22,11 +22,11 @@ export const getEffectiveTaxCountry = (taxId: TaxId): string =>
22
*/
23
export const resolveStoredTaxId = (
24
type: string,
25
- country: string,
+ taxCountry: string,
26
billingCountry?: string
27
): TaxId | undefined => {
28
const candidates = TAX_IDS.filter((option) => option.type === type)
29
- const preferredCountry = billingCountry ?? country
+ const preferredCountry = billingCountry ?? taxCountry
30
31
return candidates.find((o) => o.countryIso2 === preferredCountry)
32
}
0 commit comments