INSR-8883: Fix conditional for an event label

This commit is contained in:
Alex Humphries 2026-04-16 11:10:12 -04:00
parent 08a9a47360
commit 20a8a9b8fd

View file

@ -144,7 +144,7 @@ export default {
footerButtonClick() {
if (this.tpaRecalAnswer && (!this.showAcknowledgementCheckbox || this.acknowledged)) {
const eventLabel = this.tpaRecalAnswer === PROVIDER_PREFERENCE_OPTIONS.SAFELITE === 'yes' ? 'TPA_schedule_with_safelite' : 'TPA_accept';
const eventLabel = this.tpaRecalAnswer === PROVIDER_PREFERENCE_OPTIONS.SAFELITE ? 'TPA_schedule_with_safelite' : 'TPA_accept';
this.pushEventToGA('ADAS_self_service', 'acknowledge_recal', eventLabel, true);
this.$refs[this.ModalName]?.closeModal();
this.$emit('buttonClick', this.tpaRecalAnswer);