Merge pull request #210 from mirumee/fix/customer-address-update
Update address only one time
This commit is contained in:
commit
2b5b9731c3
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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} />
|
||||
|
|
Loading…
Reference in a new issue