fix(api_entreprise): nom_commercial can be nil

This commit is contained in:
Paul Chavard 2023-06-01 12:16:54 +02:00
parent f23a92683e
commit 86f18de7a6

View file

@ -53,6 +53,10 @@ module Types
object.capital_social || '-1'
end
def nom_commercial
object.nom_commercial || ''
end
def code_effectif_entreprise
# we need this in order to bypass Hashie::Dash deserialization issue on nil values
object.code_effectif_entreprise