Skip to content

Commit 02eacd8

Browse files
committed
Fix bug with cart
See #898
1 parent 7f55d0e commit 02eacd8

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/be/ugent/zeus/hydra/wpi/tap/cart

1 file changed

+2
-2
lines changed

app/src/main/java/be/ugent/zeus/hydra/wpi/tap/cart/Cart.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ private static List<CartProduct> fromExisting(StorageCart cart, Map<Integer, Pro
8282
for (ProductIdAmount productIdAmount : cart.products()) {
8383
Product product = productIdToProduct.get(productIdAmount.productId());
8484
if (product == null) {
85-
// Skip this product, as it nog longer exists.
85+
// Skip this product, as it no longer exists.
8686
continue;
8787
}
88-
orders.add(new CartProduct(productIdAmount.productId(), product));
88+
orders.add(new CartProduct(productIdAmount.amount(), product));
8989
}
9090
return orders;
9191
}

0 commit comments

Comments
 (0)