diff --git a/app/controllers/evaluations_controller.rb b/app/controllers/evaluations_controller.rb index 14b63657..8eefc220 100644 --- a/app/controllers/evaluations_controller.rb +++ b/app/controllers/evaluations_controller.rb @@ -17,7 +17,7 @@ def new end phase = @evaluator_submission_assignment.phase - @evaluation_form = EvaluationForm.find_by(phase: phase) + @evaluation_form = EvaluationForm.find_by(phase:) if @evaluation_form.nil? return redirect_to evaluations_path, alert: I18n.t("evaluations.alerts.evaluation_form_not_found")