Skip to content

Commit

Permalink
fix(neuron-ui): show 0 if withdraw rpc returns errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 26, 2019
1 parent 84f8f1e commit b714376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/NervosDAO/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const NervosDAO = ({
txHash: outPoint.txHash,
index: `0x${BigInt(outPoint.index).toString(16)}`,
}
return calculateDaoMaximumWithdraw(formattedDepositOutPoint, withdrawBlockHash)
return calculateDaoMaximumWithdraw(formattedDepositOutPoint, withdrawBlockHash).catch(() => null)
})
)
.then(res => {
Expand Down

0 comments on commit b714376

Please sign in to comment.