From 5baff37adb9f75f3dc46ebf96be6ef592695098d Mon Sep 17 00:00:00 2001 From: LancelotM Date: Thu, 29 Oct 2020 13:13:38 +0800 Subject: [PATCH] =?UTF-8?q?#Change=20Vaults=E9=A1=B5=E9=9D=A2=E6=8F=90?= =?UTF-8?q?=E5=8F=96=E6=8C=89=E9=92=AE=E9=BB=98=E8=AE=A4=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/vault/sections/SectionPools.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/vault/sections/SectionPools.js b/src/features/vault/sections/SectionPools.js index 656dc9e21..a6899a9d0 100644 --- a/src/features/vault/sections/SectionPools.js +++ b/src/features/vault/sections/SectionPools.js @@ -172,6 +172,9 @@ export default function SectionPools() { }) } let amountValue = withdrawAmount[index]? withdrawAmount[index].replace(',',''): withdrawAmount[index]; + if(amountValue == undefined){ + amountValue = '0'; + } if (!pool.tokenAddress) {// 如果是eth fetchWithdrawEth({ address, @@ -505,7 +508,7 @@ export default function SectionPools() { round type="button" color="primary" - disabled={fetchWithdrawPending[index] || !Boolean(withdrawAmount[index]) || !Boolean(withdrawAmount[index]!=0)} + disabled={fetchWithdrawPending[index]} onClick={onWithdraw.bind(this, pool, index, false, singleDepositedBalance)} > {fetchWithdrawPending[index] ? `${t('Vault-WithdrawING')}`: `${t('Vault-WithdrawButton')}`}