Skip to content

Fix amount output when minority more then 100 #625

Merged
merged 5 commits into from
May 8, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update amount.jsx
  • Loading branch information
romanlex committed Apr 22, 2018
commit 1afb99ce748208c2db10a1cb34adf0ed94c1991d
2 changes: 1 addition & 1 deletion src/amount/amount.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function formatAmount(amount) {
code
}
} = amount;
let fractionDigits = Math.log10(minority);
let fractionDigits = Math.log(minority) * Math.LOG10E;

let isNegative = value < 0;

Expand Down