diff --git a/app/models/allocation.rb b/app/models/allocation.rb index 502303d..a55a667 100644 --- a/app/models/allocation.rb +++ b/app/models/allocation.rb @@ -136,9 +136,7 @@ def allocate_funds_by_score(scores, total_score) end def distribute_leftover_funds(allocations) - puts allocations.inspect - - total_allocated = allocations.sum { |a| a[:allocation].to_i } + total_allocated = allocations.sum { |a| a[:allocation] } leftover = total_cents - total_allocated allocations.first[:allocation] += leftover if leftover.positive?