Formatting
This commit is contained in:
parent
87c1baf381
commit
8e44d75a54
1 changed files with 2 additions and 3 deletions
|
|
@ -119,9 +119,8 @@ function assignInshopTimeSlotsFromV2Response(entries, multiProviderResponse) {
|
||||||
const providerTimeSlots = multiProviderResponse?.providerTimeSlots ?? [];
|
const providerTimeSlots = multiProviderResponse?.providerTimeSlots ?? [];
|
||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
entry.timeSlots =
|
entry.timeSlots =
|
||||||
providerTimeSlots.find(
|
providerTimeSlots.find((pts) => pts.providerNumber === entry.provider.providerNumber) ??
|
||||||
(pts) => pts.providerNumber === entry.provider.providerNumber
|
null;
|
||||||
) ?? null;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue