initial value is this
and then i have this event from this button that logs data .
it works for when i press the button once, it is able to append an exercise completed to a sort of workoutLog object to keep track of an entire workout. However there is going to be the second exercise to append, but then it basically doesn't work after one click event. Essentially what id want is to be able to log as many exercises as possible that is dynamically appending an array, then once the entire workout is complete i can send to the backend.