mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
fix: catch null condition that was causing a crash
This commit is contained in:
parent
bb964943b7
commit
4c32b8f253
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class ResponseRateCalculator
|
|||
|
||||
return 0 unless survey_items_have_sufficient_responses?
|
||||
|
||||
return 0 unless total_possible_responses.positive?
|
||||
return 0 unless total_possible_responses && total_possible_responses.positive?
|
||||
|
||||
cap_at_one_hundred(raw_response_rate).round
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue