diff --git a/src/layouts/order-confirmation/add-to-calendar/add-to-calendar.vue b/src/layouts/order-confirmation/add-to-calendar/add-to-calendar.vue index 0e6e42e1..e45e7bc1 100644 --- a/src/layouts/order-confirmation/add-to-calendar/add-to-calendar.vue +++ b/src/layouts/order-confirmation/add-to-calendar/add-to-calendar.vue @@ -146,7 +146,7 @@ export default { if (this.appointmentType === AppointmentTypeStrings.MOBILE) { location = this.serviceLocationFullAddress?.replace('
', ''); subject = this.AddToCalendar_Mobile_Subject?.replace( - '{custom:SERVICETYPE}', + '{custom:serviceType}', this.ServiceType ); body = this.AddToCalendar_Mobile_Body; @@ -164,30 +164,30 @@ export default { } else { endDateTime = addMinutes(startDateTime, 120); subject = this.AddToCalendar_AllDayDropOff_Subject?.replace( - '{custom:STARTDATETIME}', + '{custom:startDateTime}', shortTimeString(startDateTime) - ).replace('{custom:ENDDATETIME}', shortTimeString(endDateTime)); + ).replace('{custom:endDateTime}', shortTimeString(endDateTime)); body = this.AddToCalendar_AllDayDropOff_Body?.replace( - '{custom:ENDDATETIME}', + '{custom:endDateTime}', shortTimeString(endDateTime) ); } } else { subject = this.AddToCalendar_DropOff_Subject?.replace( - '{custom:SERVICETYPE}', + '{custom:serviceType}', this.ServiceType ); body = this.AddToCalendar_DropOff_Body?.replace( - '{custom:ADDRESS}', + '{custom:address}', location ); } } else { subject = this.AddToCalendar_InShop_Subject?.replace( - '{custom:SERVICETYPE}', + '{custom:serviceType}', this.ServiceType ); - body = this.AddToCalendar_InShop_Body?.replace('{custom:ADDRESS}', location); + body = this.AddToCalendar_InShop_Body?.replace('{custom:address}', location); } duration = calculateDuration(startDateTime, endDateTime); }