fix(commune): to_s should always return a string
This commit is contained in:
parent
12f0c03bac
commit
ed33f1916a
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class Champs::CommuneChamp < Champs::TextChamp
|
|||
if code?
|
||||
"#{APIGeoService.commune_name(code_departement, code)} (#{code_postal_with_fallback})"
|
||||
else
|
||||
value
|
||||
value.present? ? value.to_s : ''
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue