From 5ecd30463615d222f876a728941a3e1096b17b57 Mon Sep 17 00:00:00 2001 From: Jordan Brough Date: Wed, 23 Aug 2017 11:15:02 -0600 Subject: [PATCH] Remove extra error on StoreCredit The code in `StoreCredit#validate_authorization` already adds errors to the StoreCredit, so this error is not needed and it may be incorrect if the error was for something else (like a mismatched currency). --- core/app/models/spree/store_credit.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/core/app/models/spree/store_credit.rb b/core/app/models/spree/store_credit.rb index eb0cbf311fc..b4ed3dfb14c 100644 --- a/core/app/models/spree/store_credit.rb +++ b/core/app/models/spree/store_credit.rb @@ -66,7 +66,6 @@ def authorize(amount, order_currency, options = {}) }) authorization_code else - errors.add(:base, Spree.t('store_credit.insufficient_authorized_amount')) false end end