diff --git a/CHANGELOG.md b/CHANGELOG.md index 66e5d148a..3958a7019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,3 +35,4 @@ All notable, unreleased changes to this project will be documented in this file. - Add variant creator - #177 by @dominik-zeglen - Add git hooks - #209 by @dominik-zeglen - Do not send customer invitation email - #211 by @dominik-zeglen +- Send address update mutation only once - #210 by @dominik-zeglen diff --git a/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx b/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx index 4d4253657..6ae1cc938 100644 --- a/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx +++ b/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx @@ -88,7 +88,7 @@ const CustomerAddressDialog = withStyles(styles, {})( maxWidth="sm" >
- {({ change, data, errors, submit }) => { + {({ change, data, errors }) => { const handleCountrySelect = createSingleAutocompleteSelectHandler( change, setCountryDisplayName, @@ -128,7 +128,6 @@ const CustomerAddressDialog = withStyles(styles, {})( transitionState={confirmButtonState} color="primary" variant="contained" - onClick={submit} type="submit" >