lib/shelby_arena/resources/contribution.rb in shelby_arena-0.0.7 vs lib/shelby_arena/resources/contribution.rb in shelby_arena-0.0.8
- old
+ new
@@ -55,10 +55,10 @@
end
private
def sum_of_funds(contribution_funds)
- contribution_funds.map { |fund| fund[:amount] }.sum
+ contribution_funds.map { |fund| fund[:amount] }.sum.round(2)
end
def translate_funds(contribution_funds)
contribution_funds.map do |fund|
{