Skip to content

Commit

Permalink
Merge pull request #899 from ZeusWPI/fix/zeus-mode
Browse files Browse the repository at this point in the history
Fix bug with cart
  • Loading branch information
niknetniko authored Feb 22, 2024
2 parents 7f55d0e + 02eacd8 commit 5601b68
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 5601b68

Please sign in to comment.