Skip to content

Commit

Permalink
[ui] fix withdraw slider value label
Browse files Browse the repository at this point in the history
  • Loading branch information
romainnorberg committed Feb 4, 2021
1 parent 238ccc4 commit 29d374d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const WithdrawSection = ({ pool, index, sharesBalance }) => {
let sliderNum = 0;
if (value) {
inputVal = Number(value.replace(',', ''));
sliderNum = byDecimals(inputVal / total, 0).toFormat(2) * 100;
sliderNum = Math.round(byDecimals(inputVal / total, 0).toNumber() * 100);
}

setWithdrawAmount({
Expand Down

0 comments on commit 29d374d

Please sign in to comment.