Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
fixes selecting a custom day with a frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
delianides committed Jan 5, 2017
1 parent c6569db commit 6ea1274
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imports/blocks/add-to-cart/Schedule/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ export class Schedule extends Component {
onDayClick = (e, day, { selected, disabled }) => {
if (disabled) return;
this.setState({ start: selected ? null : day });
this.props.saveSchedule({
frequency: this.state.frequency,
start: day,
});
}

render() {
Expand Down

0 comments on commit 6ea1274

Please sign in to comment.