fix(conditional): handle incorrect user input

This commit is contained in:
simon lehericey 2022-07-21 15:48:37 +02:00 committed by LeSim
parent df7e5256ea
commit 0d3856e84a
3 changed files with 17 additions and 3 deletions

View file

@ -25,6 +25,7 @@ class Logic::ChampValue < Logic::Term
targeted_champ = champ(champs)
return nil if !targeted_champ.visible?
return nil if targeted_champ.blank?
case type_de_champ.type_champ
when MANAGED_TYPE_DE_CHAMP.fetch(:yes_no),