Skip to content

Commit

Permalink
analyticsRecorder: fix precision issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Georgiev committed Jun 2, 2020
1 parent 24ed059 commit 3a3a531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/sentry/analyticsRecorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function record(channel, session, events, payouts) {
if (!payout) return []
// @TODO is there a way to get rid of this ugly hardcode (10**18)?
const MUL = 10 ** 18
const payAmount = payout[1].toNumber() / MUL
const payAmount = parseInt(payout[1].toString(), 10) / MUL
const adUnitRep = ev.adUnit
? [
// publisher -> ad unit -> impressions; answers which ad units are shown the most
Expand Down

0 comments on commit 3a3a531

Please sign in to comment.