Skip to content

Commit f3a4af0

Browse files
committed
divide by cents
1 parent d170532 commit f3a4af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/subscriptions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def report_subscription_change_to_slack user, from, to
342342
"#{delta} for #{user.email.split('@').first}@ (##{user.id})",
343343
"From: *#{from.name}* ($#{from.monthly_cents / 100.0}/month)",
344344
"To: *#{to.name}* (#{to.stripe_plan_id}) ($#{to.monthly_cents / 100.0}/month)",
345-
"#{total_subscriptions} subscriptions total $#{'%.2f' % monthly_rev_cents}/mo"
345+
"#{total_subscriptions} subscriptions total $#{'%.2f' % (monthly_rev_cents / 100)}/mo"
346346
].join("\n")
347347

348348
end

0 commit comments

Comments
 (0)