Skip to content

Commit

Permalink
Fix enable/disable decimals methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomg committed Feb 27, 2018
1 parent 1909acc commit ebba9a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/stepTwo/index.js
Expand Up @@ -84,11 +84,11 @@ export class stepTwo extends Component {
this.updateDecimalsStore({ value: 0, pristine: false, valid: VALID })
}

this.setState({ validation: { decimals: { disabled: true } } })
this.setState(update(this.state, { validation: { decimals: { disabled: { $set: true } } } }))
}

enableDecimals = () => {
this.setState({ validation: { decimals: { disabled: false } } })
this.setState(update(this.state, { validation: { decimals: { disabled: { $set: false } } } }))
}

renderLink () {
Expand Down

0 comments on commit ebba9a9

Please sign in to comment.