mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
#4261 Fehler bei Artikel aus Liste in Warenkorb
This commit is contained in:
@@ -711,9 +711,12 @@ export class DomainCheckoutService {
|
||||
for (const item of shoppingCart.items.map((i) => i.data)) {
|
||||
const latestAvailability = availabilityHistory
|
||||
.filter((h) => h.shoppingCartItemId === item.id && h.type === item.features.orderType)
|
||||
.reduce((prev, curr) => {
|
||||
return prev.timestamp > curr.timestamp ? prev : curr;
|
||||
});
|
||||
.reduce(
|
||||
(prev, curr) => {
|
||||
return prev.timestamp > curr.timestamp ? prev : curr;
|
||||
},
|
||||
{ timestamp: 0 }
|
||||
);
|
||||
|
||||
if (latestAvailability.timestamp + exp < now) {
|
||||
return of(false);
|
||||
|
||||
Reference in New Issue
Block a user