Skip to content

Commit dc002ed

Browse files
author
Eric Berry
authored
Gracefully handle missing summary (#1223)
1 parent f72c2f3 commit dc002ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/concerns/campaigns/budgetable.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def gross_revenue_percentage
142142
end
143143

144144
def should_display_budget_warnings?
145-
return false if start_date.future? || start_date.today?
145+
return false if start_date.future? || start_date.today? || summary.nil?
146146
(percentage_complete_by_date - gross_revenue_percentage).abs >= 5
147147
end
148148

0 commit comments

Comments
 (0)