Skip to content

Commit

Permalink
integration/streamlabs: Fix amount to have fixed float number
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed May 2, 2018
1 parent f9969b0 commit 8569b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/integrations/streamlabs.js
Expand Up @@ -100,7 +100,7 @@ class Streamlabs {
username: event.from.toLowerCase(),
message: event.message
})
global.events.fire('tip', { username: event.from.toLowerCase(), amount: event.amount, message: event.message, currency: event.currency })
global.events.fire('tip', { username: event.from.toLowerCase(), amount: parseFloat(event.amount).toFixed(2), message: event.message, currency: event.currency })
}
}
})
Expand Down

0 comments on commit 8569b44

Please sign in to comment.