[CLIENT] #16 : correction d'un bug empêchant la suppression de produit

This commit is contained in:
Notmoo-PC\Notmoo 2018-01-24 21:52:01 +01:00
parent 0a5db85a9a
commit 9b847e61d0

View File

@ -24,8 +24,8 @@ public class UpdateBuilder {
} }
public UpdateBuilder removeProduct(Product product) { public UpdateBuilder removeProduct(Product product) {
if(toRemove.contains(product)){ if(!toRemove.contains(product)){
toRemove.remove(product); toRemove.add(product);
} }
return this; return this;
} }