casing fixes

This commit is contained in:
Katie Kroell 2024-03-14 14:18:53 -04:00
parent 939441e287
commit 9c3e364eac

View file

@ -146,7 +146,7 @@ export default {
if (this.appointmentType === AppointmentTypeStrings.MOBILE) { if (this.appointmentType === AppointmentTypeStrings.MOBILE) {
location = this.serviceLocationFullAddress?.replace('<br/>', ''); location = this.serviceLocationFullAddress?.replace('<br/>', '');
subject = this.AddToCalendar_Mobile_Subject?.replace( subject = this.AddToCalendar_Mobile_Subject?.replace(
'{custom:SERVICETYPE}', '{custom:serviceType}',
this.ServiceType this.ServiceType
); );
body = this.AddToCalendar_Mobile_Body; body = this.AddToCalendar_Mobile_Body;
@ -164,30 +164,30 @@ export default {
} else { } else {
endDateTime = addMinutes(startDateTime, 120); endDateTime = addMinutes(startDateTime, 120);
subject = this.AddToCalendar_AllDayDropOff_Subject?.replace( subject = this.AddToCalendar_AllDayDropOff_Subject?.replace(
'{custom:STARTDATETIME}', '{custom:startDateTime}',
shortTimeString(startDateTime) shortTimeString(startDateTime)
).replace('{custom:ENDDATETIME}', shortTimeString(endDateTime)); ).replace('{custom:endDateTime}', shortTimeString(endDateTime));
body = this.AddToCalendar_AllDayDropOff_Body?.replace( body = this.AddToCalendar_AllDayDropOff_Body?.replace(
'{custom:ENDDATETIME}', '{custom:endDateTime}',
shortTimeString(endDateTime) shortTimeString(endDateTime)
); );
} }
} else { } else {
subject = this.AddToCalendar_DropOff_Subject?.replace( subject = this.AddToCalendar_DropOff_Subject?.replace(
'{custom:SERVICETYPE}', '{custom:serviceType}',
this.ServiceType this.ServiceType
); );
body = this.AddToCalendar_DropOff_Body?.replace( body = this.AddToCalendar_DropOff_Body?.replace(
'{custom:ADDRESS}', '{custom:address}',
location location
); );
} }
} else { } else {
subject = this.AddToCalendar_InShop_Subject?.replace( subject = this.AddToCalendar_InShop_Subject?.replace(
'{custom:SERVICETYPE}', '{custom:serviceType}',
this.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); duration = calculateDuration(startDateTime, endDateTime);
} }