Update address only one time
This commit is contained in:
parent
05d9aff656
commit
7a998ac809
1 changed files with 1 additions and 2 deletions
|
@ -88,7 +88,7 @@ const CustomerAddressDialog = withStyles(styles, {})(
|
||||||
maxWidth="sm"
|
maxWidth="sm"
|
||||||
>
|
>
|
||||||
<Form initial={initialForm} errors={errors} onSubmit={onConfirm}>
|
<Form initial={initialForm} errors={errors} onSubmit={onConfirm}>
|
||||||
{({ change, data, errors, submit }) => {
|
{({ change, data, errors }) => {
|
||||||
const handleCountrySelect = createSingleAutocompleteSelectHandler(
|
const handleCountrySelect = createSingleAutocompleteSelectHandler(
|
||||||
change,
|
change,
|
||||||
setCountryDisplayName,
|
setCountryDisplayName,
|
||||||
|
@ -128,7 +128,6 @@ const CustomerAddressDialog = withStyles(styles, {})(
|
||||||
transitionState={confirmButtonState}
|
transitionState={confirmButtonState}
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="contained"
|
variant="contained"
|
||||||
onClick={submit}
|
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
<FormattedMessage {...buttonMessages.save} />
|
<FormattedMessage {...buttonMessages.save} />
|
||||||
|
|
Loading…
Reference in a new issue