Experiment not exiting on pavlovia based on the consent response

URL of experiment: EAtask-FINAL [PsychoPy]

Description of the problem: I have made an experiment with a consent question in a slide that asks the participants about their willingness to participate in the study. The responses are presented as the radio form of a slider with either a “Yes” or a “No”.

What I did try: I inputted a code component and used this:

c=slider.getRating()
if c==“No”:
core.quit()

I put this code in the “each frame” section of my code component.
Now, this works perfectly well locally but doesn’t work in pavlovia. The experiment keeps on playing and continues to the next slide.