Skip to content

Commit

Permalink
Fix bug with cart
Browse files Browse the repository at this point in the history
See #898
  • Loading branch information
niknetniko committed Feb 22, 2024
1 parent 7f55d0e commit 02eacd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/be/ugent/zeus/hydra/wpi/tap/cart/Cart.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ private static List<CartProduct> fromExisting(StorageCart cart, Map<Integer, Pro
for (ProductIdAmount productIdAmount : cart.products()) {
Product product = productIdToProduct.get(productIdAmount.productId());
if (product == null) {
// Skip this product, as it nog longer exists.
// Skip this product, as it no longer exists.
continue;
}
orders.add(new CartProduct(productIdAmount.productId(), product));
orders.add(new CartProduct(productIdAmount.amount(), product));
}
return orders;
}
Expand Down

0 comments on commit 02eacd8

Please sign in to comment.