CSR-2242 allow drop off to trigger ga event for shops displayed
This commit is contained in:
CarlNation 2024-10-02 12:22:37 -04:00
parent 7c8b77d5df
commit 9cdf1022d0

View file

@ -167,7 +167,10 @@ export default {
if (logFirstShopsDisplayed) {
gaAction = this.GaActions.SHOPS_FIRST_DISPLAYED;
}
if (this.selectedAppointmentType === AppointmentTypeStrings.IN_SHOP) {
if (
this.selectedAppointmentType === AppointmentTypeStrings.IN_SHOP ||
this.selectedAppointmentType === AppointmentTypeStrings.DROP_OFF
) {
var shops = mappedData.map((shop) => {
if (shop.value.length > 5 && shop.value.startsWith("00")) {
return shop.value.substring(1);