mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Fix empty zip
This commit is contained in:
1 parent
499d5455f5
commit
b09267c251
5 files changed
+15
-6
No files matched your search
@@ -47,7 +47,7 @@
|
||||
address,
|
||||
city,
|
||||
state,
|
||||
zip,
|
||||
zip ? zip : undefined,
|
||||
address2 ? address2 : undefined
|
||||
);
|
||||
trackEvent(Submit.BillingAddressCreate);
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
|
||||
onMount(async () => {
|
||||
const countryList = await sdk.forProject.locale.listCountries();
|
||||
const locale = await sdk.forProject.locale.get();
|
||||
if (locale.countryCode) {
|
||||
country = locale.countryCode;
|
||||
}
|
||||
options = countryList.countries.map((country) => {
|
||||
return {
|
||||
value: country.code,
|
||||
@@ -38,7 +42,7 @@
|
||||
selectedAddress.streetAddress,
|
||||
selectedAddress.city,
|
||||
selectedAddress.state,
|
||||
selectedAddress.postalCode,
|
||||
selectedAddress.postalCode ? selectedAddress.postalCode : undefined,
|
||||
selectedAddress.addressLine2 ? selectedAddress.addressLine2 : undefined
|
||||
);
|
||||
await invalidate(Dependencies.ADDRESS);
|
||||
|
||||
@@ -96,7 +96,9 @@
|
||||
$changeOrganizationTier.billingAddress.streetAddress,
|
||||
$changeOrganizationTier.billingAddress.city,
|
||||
$changeOrganizationTier.billingAddress.state,
|
||||
$changeOrganizationTier.billingAddress.postalCode,
|
||||
$changeOrganizationTier.billingAddress.postalCode
|
||||
? $changeOrganizationTier.billingAddress.postalCode
|
||||
: undefined,
|
||||
$changeOrganizationTier.billingAddress.addressLine2
|
||||
? $changeOrganizationTier.billingAddress.addressLine2
|
||||
: undefined
|
||||
|
||||
@@ -49,7 +49,9 @@
|
||||
$createOrganization.billingAddress.streetAddress,
|
||||
$createOrganization.billingAddress.city,
|
||||
$createOrganization.billingAddress.state,
|
||||
$createOrganization.billingAddress.postalCode,
|
||||
$createOrganization.billingAddress.postalCode
|
||||
? $createOrganization.billingAddress.postalCode
|
||||
: undefined,
|
||||
$createOrganization.billingAddress.addressLine2
|
||||
? $createOrganization.billingAddress.addressLine2
|
||||
: undefined
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
label: 'United States'
|
||||
}
|
||||
];
|
||||
|
||||
onMount(async () => {
|
||||
addresses = await sdk.forConsole.billing.listAddresses();
|
||||
|
||||
@@ -61,8 +62,8 @@
|
||||
streetAddress,
|
||||
city,
|
||||
state,
|
||||
postalCode,
|
||||
addressLine2
|
||||
postalCode ? postalCode : undefined,
|
||||
addressLine2 ? postalCode : undefined
|
||||
);
|
||||
await sdk.forConsole.billing.setBillingAddress($organization.$id, address.$id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user