diff options
author | David Gay <david@davidgay.org> | 2021-07-07 22:40:34 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-07 22:40:34 -0400 |
commit | 9e1b3b009743b1c9cea5144c0b78af5bd1f9cd3c (patch) | |
tree | 6cae49777d133bbb1f2a8f2bc130897cf9dc1fea /app/views | |
parent | 42fdbb46c435da186467a192d4f44642a60656a5 (diff) |
Fix bug causing game to be hard-locked unplayable as a result of attempting to do any activity which has no skill requirements
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/application/_timer.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/application/_timer.html.erb b/app/views/application/_timer.html.erb index de82546..ea710e3 100644 --- a/app/views/application/_timer.html.erb +++ b/app/views/application/_timer.html.erb @@ -17,7 +17,7 @@ <% required_character_skills = current_char.activity.whatnot[:requirements]&.filter_map { |r| current_char.character_skills.find_by(skill: Skill.find_by_gid(r[:gid])) if r[:type] == "skill" } %> <div class="text-center text-sm"> - <% required_character_skills.each do |cs| %> + <% required_character_skills&.each do |cs| %> <div class="space-y-1"> <div class="text-xs"><%= cs.skill.name %> level <%= cs.level %></div> <div><%= cs.xp_to_next_level %> XP to next level</div> |