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) {
location = this.serviceLocationFullAddress?.replace('<br/>', '');
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);
}