Skip to content
Snippets Groups Projects
Commit e1191546 authored by Maria Zadnepryanets's avatar Maria Zadnepryanets
Browse files

Merge branch...

Merge branch '306-chart-displays-sex-dot-even-if-only-contraceptive-options-are-saved' into 'master'

Chart doesn't display sex dot although contraception method 'other' has been already removed

Closes #306

See merge request bloodyhealth/drip!285
parents 1291fe70 02db9c17
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,12 @@ class Sex extends Component {
toggleState = (key) => {
const curr = this.state[key]
this.setState({[key]: !curr})
if (key === 'other' && !curr) {
this.setState({focusTextArea: true})
if (key === 'other'){
if (curr){
this.setState({note: ""})
} else {
this.setState({focusTextArea: true})
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment