fix(commune): to_s should always return a string

This commit is contained in:
Paul Chavard 2023-04-04 14:53:57 +02:00
parent 12f0c03bac
commit ed33f1916a

View file

@ -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