mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-27 02:46:04 +02:00
Revert "Ignore cart items not in lookup."
This reverts commit e4ee367fb5
.
This commit is contained in:
parent
e4ee367fb5
commit
7c14849918
|
@ -32,7 +32,8 @@ class Carts extends Model {
|
||||||
const items = [];
|
const items = [];
|
||||||
for (const cartItem of cart.items) {
|
for (const cartItem of cart.items) {
|
||||||
const item = itemsLookup[cartItem.store + cartItem.id];
|
const item = itemsLookup[cartItem.store + cartItem.id];
|
||||||
if (item) items.push(item);
|
if (!item) items.push(cartItem);
|
||||||
|
else items.push(item);
|
||||||
}
|
}
|
||||||
cart.items = items;
|
cart.items = items;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user