diff --git a/app/controllers/candidate_controller.rb b/app/controllers/candidate_controller.rb index 59fd244..344c663 100644 --- a/app/controllers/candidate_controller.rb +++ b/app/controllers/candidate_controller.rb @@ -113,6 +113,7 @@ class CandidateController < ApplicationController flash[:answer_error] = answer_params[:question_id].to_i render :question else + flash.delete(:answer_error) # TODO: change params.key? to submit = save/next/summary # redirect_to :summary and return if params.key?(:update) redirect_to :saved and return if params.key?(:save)