diff --git a/app/models/case_log.rb b/app/models/case_log.rb index ae16a4945..a524a9e42 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -105,8 +105,8 @@ private dynamically_not_required << "other_reason_for_leaving_last_settled_home" end - if net_income.to_i == 0 - dynamically_not_required << "net_income_frequency" + if net_income.to_i.zero? + dynamically_not_required << "net_income_frequency" end required.delete_if { |key, _value| dynamically_not_required.include?(key) }