diff --git a/core/app/models/spree/store_credit.rb b/core/app/models/spree/store_credit.rb index 200a741d984..970dacdd44b 100644 --- a/core/app/models/spree/store_credit.rb +++ b/core/app/models/spree/store_credit.rb @@ -268,6 +268,7 @@ def validate_category_unchanged def validate_no_amount_used if amount_used > 0 errors.add(:amount_used, 'is greater than zero. Can not delete store credit') + throw :abort end end