diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/activities_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb index a1a1835..c115abb 100644 --- a/app/controllers/activities_controller.rb +++ b/app/controllers/activities_controller.rb @@ -9,8 +9,8 @@ class ActivitiesController < ApplicationController redirect_to look_path else message = "You can't do that." - message += " (requires #{@activity.requirements&.join(", ")})" if @activity.requirements - message += " (costs #{@activity.costs&.join(", ")})" if @activity.costs + message += " (requires #{@activity.requirements&.join(", ")})" if @activity.requirements.any? + message += " (costs #{@activity.costs&.join(", ")})" if @activity.costs.any? flash[:alert] = message redirect_back(fallback_location: character_path(current_char)) end |