Browse Source

Add a guard clause

pull/84/head
baarkerlounger 4 years ago
parent
commit
bfc3af72a9
  1. 2
      app/models/case_log.rb

2
app/models/case_log.rb

@ -129,6 +129,8 @@ class CaseLog < ApplicationRecord
end end
def weekly_net_income def weekly_net_income
return unless earnings && incfreq
case incfreq case incfreq
when "Weekly" when "Weekly"
earnings earnings

Loading…
Cancel
Save