From 29d374d4f921fdddc21520f098bc5f7a91f31a50 Mon Sep 17 00:00:00 2001 From: Norberg Date: Thu, 4 Feb 2021 17:28:27 +0100 Subject: [PATCH] [ui] fix withdraw slider value label --- .../components/PoolDetails/WithdrawSection/WithdrawSection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/vault/components/PoolDetails/WithdrawSection/WithdrawSection.js b/src/features/vault/components/PoolDetails/WithdrawSection/WithdrawSection.js index f06d99b12..e21a7ed6d 100644 --- a/src/features/vault/components/PoolDetails/WithdrawSection/WithdrawSection.js +++ b/src/features/vault/components/PoolDetails/WithdrawSection/WithdrawSection.js @@ -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({