Skip to content

Commit

Permalink
Merge pull request #94 from romainnorberg/fix-withdraw-slider-valueLabel
Browse files Browse the repository at this point in the history
[ui] fix withdraw slider value label
  • Loading branch information
superbeefyboy authored Feb 5, 2021
2 parents 238ccc4 + 29d374d commit dea4eaa
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 dea4eaa

Please sign in to comment.