Snoozing Notifications: Why is snooze action 2 is not working?

I’m trying to set up a couple of snooze options for notifications. I’m testing 1min and 2min snoozes to make sure it the automation gets disabled when a snoozed is triggered.
The first action (1 min) seems to work. Automation is disabled for 1min and restarts again. However, the second action doesn’t work or partially. It’s not disabling for 2 min but 1min. So I think it’s using the action 1 as the condition.

I believe it’s something with the condition on snooze_time_mins. Can someone point me to the right condition?

Thanks!

...
action:
  - service: camera.snapshot
    data:
      filename: /config/www/cam/back-porch_person.jpg
    target:
      entity_id: camera.back_porch
  - service: notify.mobile_app_jr_iphone
    data:
      message: Person detected in the back porch
      title: Back Porch Cam
      data:
        image: /local/cam/back-porch_person.jpg
        actions:
          - action: URI
            title: View Camera
            uri: /lovelace/cameras
          - action: SNOOZE_1_MIN
            title: "Snooze Notifications: 1 min"
          - action: SNOOZE_2_MIN
            title: "Snooze Notifications: 2 min"
  - wait_for_trigger:
      - platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: SNOOZE_1_MIN
      - platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: SNOOZE_2_MIN
    continue_on_timeout: false
    timeout: "00:01:00"
  - service: script.1703999874708
    data:
      snooze_time_mins: >-
        {% if wait.trigger.event.data.actionName == SNOOZE_1_MIN %} 1 {% elif
        wait.trigger.event.data.actionName == SNOOZE_2_MIN %} 2 {% endif %}
      automation_name: automation.back_porch_cam_person
mode: restart

script.1703999874708

alias: Snooze Notifications
sequence:
  - service: automation.turn_off
    target:
      entity_id: "{{ automation_name }}"
    data:
      stop_actions: false
  - delay:
      minutes: "{{ snooze_time_mins }}"
  - service: automation.turn_on
    target:
      entity_id: "{{ automation_name }}"
mode: single
icon: mdi:alarm-snooze