Browse Source

Fixed NPE on stats page

G0dwin-copy-edits
Godwin 6 years ago
committed by GitHub
parent
commit
a7fb14dffd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/views/conference_administration/_stats.html.haml

2
app/views/conference_administration/_stats.html.haml

@ -3,7 +3,7 @@
= data_set(:h3, 'articles.admin.stats.headings.completed_registrations') do
= (@completed_registrations || 0).to_s
= data_set(:h3, 'articles.admin.stats.headings.incomplete_registrations') do
= ((@registration_count - @completed_registrations) || 0).to_s
= ((@registration_count || 0) - (@completed_registrations || 0)).to_s
= data_set(:h3, 'articles.admin.stats.headings.bikes') do
= (@completed_registrations || 0) > 0 ? "#{@bikes} (#{number_to_percentage(@bikes / @completed_registrations.to_f * 100.0)})" : "0"
= data_set(:h3, 'articles.admin.stats.headings.food.meat') do

Loading…
Cancel
Save