diff --git a/app/models/funder.rb b/app/models/funder.rb index b8a2f63f3..3fc01a689 100644 --- a/app/models/funder.rb +++ b/app/models/funder.rb @@ -44,7 +44,7 @@ def self.query(query, options={}) def self.parse_message(id: nil, message: nil) if message["location"].present? c = ISO3166::Country.find_country_by_name(message["location"]) - code = c.alpha2.present? ? c.alpha2 : nil + code = c.present? ? c.alpha2 : nil country = { "code" => code, "name" => message["location"]