catch shop time error
This commit is contained in:
parent
ce172e0256
commit
70672621cd
1 changed files with 6 additions and 3 deletions
|
|
@ -176,15 +176,18 @@ const getAvailableDates = async (
|
|||
storeAction.payload.endDate,
|
||||
storeAction.payload.shopAppointmentType,
|
||||
storeAction.payload.providerNumber
|
||||
);
|
||||
).catch(() => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn('Error fetching shop time slots...');
|
||||
});
|
||||
} else if (storeAction.payload?.zipCodeOverride) {
|
||||
timeSlotsResponse = await useMainStore().getMobileTimeSlots(
|
||||
storeAction.payload.startDate,
|
||||
storeAction.payload.endDate,
|
||||
storeAction.payload.zipCodeOverride
|
||||
).catch((error) => {
|
||||
).catch(() => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn('Error fetching mobile time slots:', error);
|
||||
console.warn('Error fetching mobile time slots...');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue