Merge pull request #210 from mirumee/fix/customer-address-update

Update address only one time
This commit is contained in:
Marcin Gębala 2019-10-11 15:14:52 +02:00 committed by GitHub
commit 2b5b9731c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -88,7 +88,7 @@ const CustomerAddressDialog = withStyles(styles, {})(
maxWidth="sm"
>
<Form initial={initialForm} errors={errors} onSubmit={onConfirm}>
{({ 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"
>
<FormattedMessage {...buttonMessages.save} />