Fix bug in loading countries in nonprofit_controller.rb

This commit is contained in:
Eric Schultz 2020-10-26 15:50:49 -05:00 committed by Eric Schultz
parent b423daed20
commit 8fb92ef1ca

View file

@ -135,7 +135,6 @@ class NonprofitsController < ApplicationController
if Houdini.intl.all_countries
countries = all_countries.select { |code, _name| Houdini.intl.all_countries.include? code }
countries = countries.map { |code, name| [code.upcase, name] }.sort_by { |a| a[1] }
countries.push([Houdini.intl.other_country.upcase, I18n.t('nonprofits.donate.info.supporter.other_country')]) if Houdini.intl.other_country
countries
else
all_countries.map { |code, name| [code.upcase, name] }.sort_by { |a| a[1] }