diff --git a/components/cycle-day/symptoms/bleeding.js b/components/cycle-day/symptoms/bleeding.js index 3c88ec5..c608aeb 100644 --- a/components/cycle-day/symptoms/bleeding.js +++ b/components/cycle-day/symptoms/bleeding.js @@ -39,7 +39,7 @@ export default class Bleeding extends Component { this.setState({ currentValue: val })} + onSelect={val => val === this.state.currentValue ? this.setState({ currentValue: null }) : this.setState({ currentValue: val })} /> this.setState({ opening: val })} + onSelect={val => val === this.state.opening ? this.setState({ opening: null }) : this.setState({ opening: val })} /> this.setState({ firmness: val })} + onSelect={val => val === this.state.firmness ? this.setState({ firmness: null }) : this.setState({ firmness: val })} /> this.setState({ position: val })} + onSelect={val => val === this.state.position ? this.setState({ position: null }) : this.setState({ position: val })} /> this.setState({ currentValue: val })} + onSelect={val => val === this.state.currentValue ? this.setState({ currentValue: null }) : this.setState({ currentValue: val })} /> diff --git a/components/cycle-day/symptoms/mucus.js b/components/cycle-day/symptoms/mucus.js index a517fcd..1e13777 100644 --- a/components/cycle-day/symptoms/mucus.js +++ b/components/cycle-day/symptoms/mucus.js @@ -46,7 +46,7 @@ export default class Mucus extends Component { > this.setState({ feeling: val })} + onSelect={val => val === this.state.feeling ? this.setState({ feeling: null }) : this.setState({ feeling: val })} active={this.state.feeling} /> @@ -56,7 +56,7 @@ export default class Mucus extends Component { > this.setState({ texture: val })} + onSelect={val => val === this.state.texture ? this.setState({ texture: null }) : this.setState({ texture: val })} active={this.state.texture} />