I am having a similar problem today. My timer is being updated correctly, but continueRoutine is always true, despite my continueRoutine = false statement being included in the “every frame” part of the code component
Edit: solution found here: Cannot exit loop in online Pavlovia (Using JS code component). I simply changed continueRoutine = false to trials.finished = true;