From fb037b32493f63eac2d21dc7852f0462a213fba5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 3 Jan 2023 02:41:38 -0800 Subject: [PATCH] Fix testing conflict_characters --- app/controllers/api/v1/grid_characters_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/grid_characters_controller.rb b/app/controllers/api/v1/grid_characters_controller.rb index 68690d1..2f68524 100644 --- a/app/controllers/api/v1/grid_characters_controller.rb +++ b/app/controllers/api/v1/grid_characters_controller.rb @@ -10,7 +10,7 @@ module Api before_action :find_current_characters, only: :create def create - if conflict_characters&.length.positive? + if !conflict_characters.nil? && conflict_characters.length.positive? # Render a template with the conflicting and incoming characters, # as well as the selected position, so the user can be presented with # a decision.