manki11 / ExerciserReact

React code of Exerciser Activity. GSoC 2018
Apache License 2.0
2 stars 54 forks source link

Exercise Id is not regenerated when using demo exercises #8

Closed llaske closed 6 years ago

llaske commented 6 years ago

When using the demo exercises, the id is not correctly initialized so when an exercise is added or removed, the activity don't work correctly.

manki11 commented 6 years ago

Whenever an increment is done in the amount of demo exercises. The initial state needs to be changed here to the id of the next exercise. https://github.com/manki11/ExerciserReact/blob/master/src/store/reducers/exercise_counter.js#L3

manki11 commented 6 years ago

Issue solved in 95b1f0ccc23922e79c4b4f2dd3fdf549f82a0de6