Merge pull request #1407 from Safelite/rlsmerge/2023.09.21-to-develop
Rlsmerge/2023.09.21 to develop
This commit is contained in:
commit
aa9dc9649c
1 changed files with 4 additions and 1 deletions
|
|
@ -672,7 +672,10 @@ function getTimeSlotsAdditionalEventData(
|
||||||
) {
|
) {
|
||||||
var numberOfDays = null;
|
var numberOfDays = null;
|
||||||
if (firstAvailableAppointmentDateString)
|
if (firstAvailableAppointmentDateString)
|
||||||
numberOfDays = getDateDifferenceInDays(new Date(), firstAvailableAppointmentDateString);
|
numberOfDays = getDateDifferenceInDays(
|
||||||
|
new Date().toISOString().split("T")[0],
|
||||||
|
firstAvailableAppointmentDateString
|
||||||
|
);
|
||||||
|
|
||||||
if (shopAppointmentType)
|
if (shopAppointmentType)
|
||||||
return `FirstAvailableAppointment:${numberOfDays},Zip:${zipCode},ShopAppointmentType:${shopAppointmentType},ProvisionalTriggers:${provisionalTriggers.join(
|
return `FirstAvailableAppointment:${numberOfDays},Zip:${zipCode},ShopAppointmentType:${shopAppointmentType},ProvisionalTriggers:${provisionalTriggers.join(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue