Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Done' action dispatch when finishing a workout #68

Open
mbosselut opened this issue Dec 9, 2019 · 0 comments
Open

'Done' action dispatch when finishing a workout #68

mbosselut opened this issue Dec 9, 2019 · 0 comments

Comments

@mbosselut
Copy link
Contributor

When doing a workout, the 'Done' button should call a new action (through the finishWorkout function) to remove this workout from the todaysWorkouts array. That way the next 'Start your workout' call through the dashboard will correctly launch the second exercise of the day.

Once todaysWorkouts is empty, a PUT request should be made to :userid/calendar/day to add that user as having completed this day's workout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant