diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index 3879f16741..95fc059e06 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -26,7 +26,7 @@ class CheckoutController < Spree::CheckoutController if @order.next state_callback(:after) else - unless @order.errors.empty? + if @order.errors.present? flash[:error] = @order.errors.full_messages.to_sentence else flash[:error] = t(:payment_processing_failed)