sentry(3830513995): champs pays peut avoir un external_id a '', test la presence d'external_id sinon on peut renvoyer du nil via Champs::PaysChamp.name
This commit is contained in:
parent
72791bd5b6
commit
a2d3ec7a21
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Champs::PaysChamp < Champs::TextChamp
|
|||
end
|
||||
|
||||
def name
|
||||
if external_id
|
||||
if external_id.present?
|
||||
APIGeoService.country_name(external_id)
|
||||
else
|
||||
value.present? ? value.to_s : ''
|
||||
|
|
Loading…
Reference in a new issue