diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index a08c1d7..2560ec8 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -452,7 +452,7 @@ def gateway_error(response) if I18n.locale == :en text = "#{I18n.t('gateway_error')}: #{text}" - else + elsif !text.blank? # Parameterize text for i18n key text = text.parameterize(sep = '_') text = "#{I18n.t('gateway_error')}: #{I18n.t(text)}"