Skip to content

Commit

Permalink
#Change Vaults页面提取按钮默认可用
Browse files Browse the repository at this point in the history
  • Loading branch information
LancelotM committed Oct 29, 2020
1 parent 15e8e99 commit 5baff37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/features/vault/sections/SectionPools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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')}`}
Expand Down

0 comments on commit 5baff37

Please sign in to comment.