Skip to content

Commit 5601b68

Browse files
authored
Merge pull request #899 from ZeusWPI/fix/zeus-mode
Fix bug with cart
2 parents 7f55d0e + 02eacd8 commit 5601b68

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)