This commit is contained in:
Daniil Gentili 2017-11-06 15:03:42 +03:00
parent 56c670ea4b
commit 38c7664c0b

View File

@ -76,7 +76,9 @@ public class Client {
ResponsePayload response = new ResponsePayload(in); ResponsePayload response = new ResponsePayload(in);
this.allTimeTotal += this.cart.getPriceTotal(); if (response.getResponseCode() == 200) {
this.allTimeTotal += this.cart.getPriceTotal();
}
this.warehouse.rebuild(response.getPayload()); this.warehouse.rebuild(response.getPayload());
this.cart.rebuild(); this.cart.rebuild();