GideonNeedleman / 5x5

0 stars 0 forks source link

fix adaptive metric not working #126

Closed GideonNeedleman closed 7 months ago

GideonNeedleman commented 7 months ago

Adaptive metrics not working for some reason. Default values are not changing. Probably broke it when I refactored program & exercise object shape.

GideonNeedleman commented 7 months ago

Yep, that's exactly what happened. Reducer action.type: "update-adaptive-metrics" is trying to update the programData, but that's no longer where the default set values are stored.

Instead they are stored inside the workoutData > exercises > sets

GideonNeedleman commented 7 months ago

Actually looks like I accidentally had adaptive metrics set to true. So maybe it was working as intended... So it's actually working correctly!