Stimuli start condition ignored in pavlovia

URL of experiment: Pavlovia

PsychoPy version: 2022.2.4

Description of the problem:
In this experiment, there is a test phase in which a rating scale is displayed. Once a response is made in that rating scale, a button that says continue is displayed so the participants can proceed to the next trial. This is controlled by including a code component on the routine in the Builder. In the Begin Routine tab, the code is:
show_consent = False
In the Each Frame tab, the code is:
s6 = slider_6.getRating() if s6 is not None: show_consent = True
In the text button component, the Start is set to condition (show_content). This works when run on PsychoPy, but in Pavlovia the text button is displayed from the start of the routine. I cheked the JS code and the condition appears
` if ((show_consent) && consent_box.status === PsychoJS.Status.NOT_STARTED) {
// keep track of start time/frame for later
consent_box.tStart = t; // (not accounting for frame time here)
consent_box.frameNStart = frameN; // exact frame index

  consent_box.setAutoDraw(true);
}`