diff options
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | app/views/application/_timer.html.erb | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a20813..dbc6778 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog All notable changes to this project will be documented in this file. +## [0.1.13.2] - 2021-07-07 + +### Fixes +- Bug causing game to be hard-locked unplayable as a result of attempting to do any activity which has no skill + requirements. + ## [0.1.13.1] - 2021-07-07 ### Chat 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> |