Commit 00871c1e authored by Axel Bocciarelli's avatar Axel Bocciarelli
Browse files

Stop disabling UI elements when user has no addresses

parent ef410b2a
......@@ -113,7 +113,6 @@ function ShippingForm(props) {
<FormControl
name="defaultShippingAddress"
componentClass="select"
disabled={noAddress}
inputRef={register({ required: true })}
>
<option value="">Select default sending address...</option>
......@@ -168,7 +167,6 @@ function ShippingForm(props) {
<FormControl
name="defaultReturnAddress"
componentClass="select"
disabled={noAddress}
inputRef={register}
>
<option value="">No default return address</option>
......@@ -216,7 +214,7 @@ function ShippingForm(props) {
<Col {...FORM_LAYOUT.fieldCol} smOffset={FORM_LAYOUT.labelCol.sm}>
<Button
bsStyle="primary"
disabled={noAddress || isSubmitting}
disabled={isSubmitting}
onClick={handleSubmit(handleFormSubmit)}
>
{isSubmitting ? 'Saving...' : 'Save'}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment