We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2649342 commit b32d36eCopy full SHA for b32d36e
app/controllers/tools_controller.rb
@@ -133,8 +133,8 @@ def state_reps
133
address = "#{params[:street_address]} #{params[:zipcode]}"
134
@state_reps = CivicApi.state_rep_search(address, @email_campaign.leg_level)
135
136
- # get first non-null email for a state rep
137
- @state_rep_email = @state_reps.map{|sr| sr["emails"] }.flatten.compact.first
+ # Get first non-null email for a state rep
+ @state_rep_email = @state_reps.map { |sr| sr["emails"] }.flatten.compact.first
138
139
unless @state_reps.present?
140
render plain: "No representatives found", status: 200
0 commit comments