Skip to content

Commit

Permalink
Stupid mistake in amount computation fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
gokr committed Jan 8, 2018
1 parent bd61f93 commit d7ab632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/controllers/amount.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ angular.module('canoeApp.controllers').controller('amountController', function (
var big
if (unit.isFiat) {
big = new BigNumber(fromFiat(amount))
amount = (big.dividedBy(unitToRaw)).toFixed(0)
amount = (big.times(unitToRaw)).toFixed(0)
} else {
big = new BigNumber(amount)
amount = (big.times(unitToRaw)).toFixed(0)
Expand Down

0 comments on commit d7ab632

Please sign in to comment.