Skip to content

Commit b714376

Browse files
committed
fix(neuron-ui): show 0 if withdraw rpc returns errors
1 parent 84f8f1e commit b714376

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/neuron-ui/src/components/NervosDAO

packages/neuron-ui/src/components/NervosDAO/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const NervosDAO = ({
252252
txHash: outPoint.txHash,
253253
index: `0x${BigInt(outPoint.index).toString(16)}`,
254254
}
255-
return calculateDaoMaximumWithdraw(formattedDepositOutPoint, withdrawBlockHash)
255+
return calculateDaoMaximumWithdraw(formattedDepositOutPoint, withdrawBlockHash).catch(() => null)
256256
})
257257
)
258258
.then(res => {

0 commit comments

Comments
 (0)