Merge pull request #6077 from tchak/fix-pdf-nilcheck

Ensure address to_s never returns nil
This commit is contained in:
Paul Chavard 2021-04-08 16:54:07 +01:00 committed by GitHub
commit 5ecd70eea1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ class Champs::AddressChamp < Champs::TextChamp
end
def to_s
address_label
address_label.presence || ''
end
def for_tag