Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Display form errors

dominik-zeglen1f3fec51d9c0
diff --git a/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx b/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx
index 04588ddbb8..fd27c3986f 100644
--- a/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx
+++ b/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx
@@ -55,8 +55,8 @@ const CustomerAddressDialog = withStyles(styles, {})(
cityArea: maybe(() => address.cityArea, ""),
companyName: maybe(() => address.companyName, ""),
country: {
- label: maybe(() => address.country.country),
- value: maybe(() => address.country.code)
+ label: maybe(() => address.country.country, ""),
+ value: maybe(() => address.country.code, "")
},
countryArea: maybe(() => address.countryArea, ""),
firstName: maybe(() => address.firstName, ""),
diff --git a/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsx b/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsx
index d248300171..ff59a633d1 100644
--- a/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsx
+++ b/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsx
@@ -175,8 +175,8 @@ const CustomerAddresses: React.FC<CustomerAddressesProps> = ({ id }) => {
)}
errors={maybe(
() =>
- updateCustomerAddressOpts.data
- .addressUpdate.errors,
+ createCustomerAddressOpts.data
+ .addressCreate.errors,
[]
)}
open={!!match}