Skip to content

Commit

Permalink
Not allow keyin all space.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Dec 17, 2024
1 parent 283322f commit 3b71956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/staff/mark_scores_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ def build_table_headers_of_capability(headers_of_capability, headers_of_performa
def check_mark_score_completion(need_review_evaluations, job_role_evaluation_performances)
all_overall_not_valid_eucs = need_review_evaluations.find_all do |euc|
euc.manager_overall_improvement&.length.to_i < 20 \
|| euc.manager_overall_plan&.length.to_i < 20
|| euc.manager_overall_plan&.length.to_i < 20 \
|| euc.manager_overall_improvement&.strip&.empty? \
|| euc.manager_overall_plan&.strip&.empty?
end
Rails.logger.debug "all_overall_not_valid_eucs: #{all_overall_not_valid_eucs}"

Expand Down

0 comments on commit 3b71956

Please # to comment.