Fix testing conflict_characters
This commit is contained in:
parent
5e4cb4fe2b
commit
fb037b3249
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ module Api
|
||||||
before_action :find_current_characters, only: :create
|
before_action :find_current_characters, only: :create
|
||||||
|
|
||||||
def 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,
|
# Render a template with the conflicting and incoming characters,
|
||||||
# as well as the selected position, so the user can be presented with
|
# as well as the selected position, so the user can be presented with
|
||||||
# a decision.
|
# a decision.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue