make form accessible

This commit is contained in:
2017-02-26 18:18:37 +01:00
parent ca9ab667a8
commit b56fc79f81
5 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ class SupportersController < ApplicationController
mailchimp_registration
redirect_to thanks_path
else
flash.now[:danger] = t '.timeout' if input_to_fast?
flash.now[:danger] = input_to_fast? ? t('.timeout') : t('input_error')
render :new
end
end