Skip to content

Commit

Permalink
update pricinging on get
Browse files Browse the repository at this point in the history
  • Loading branch information
siamaksade committed Oct 12, 2017
1 parent 799afbc commit d79baba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public ShoppingCart getShoppingCart(String cartId) {
return cart;
}

return carts.get(cartId);
ShoppingCart cart = carts.get(cartId);
priceShoppingCart(cart);
carts.put(cartId, cart);
return cart;
}

private void priceShoppingCart(ShoppingCart sc) {
Expand Down

0 comments on commit d79baba

Please sign in to comment.