From 1c230a0c407988313579444d1a413bb262f6aa54 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 7 Mar 2020 09:51:01 +0100 Subject: [PATCH] export state code without country --- app/controllers/export_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index 8a329627e..dccc16f69 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -168,7 +168,7 @@ def organizations billingCity: provider.billing_city, billingDepartment: provider.billing_department, billingOrganization: provider.billing_organization, - billingStateCode: provider.billing_state, + billingStateCode: provider.billing_state.present? ? provider.billing_state.split("-").last : nil, billingCountryCode: provider.billing_country, twitter: provider.twitter_handle, rorId: provider.ror_id,