diff --git a/shopinvader_promotion_rule/services/cart.py b/shopinvader_promotion_rule/services/cart.py index 55cfcc728c..6bf701c3ea 100644 --- a/shopinvader_promotion_rule/services/cart.py +++ b/shopinvader_promotion_rule/services/cart.py @@ -39,11 +39,12 @@ def _update(self, cart, params): if is_coupon_code_specified: if coupon_code: cart.add_coupon(coupon_code) - else: - if cart.coupon_code: - # the promotion has been removed: - # * clear the promotion - cart.clear_promotions() + return res + + if cart.coupon_code: + # the promotion has been removed: + # * clear the promotion + cart.clear_promotions() # apply default promotion cart.apply_promotions() return res