From b714376eb4c48cc5c6212369ff6632a544b66249 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 26 Nov 2019 21:16:06 +0800 Subject: [PATCH] fix(neuron-ui): show 0 if withdraw rpc returns errors --- packages/neuron-ui/src/components/NervosDAO/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/neuron-ui/src/components/NervosDAO/index.tsx b/packages/neuron-ui/src/components/NervosDAO/index.tsx index 9f1ead3086..43ad2b0ac1 100644 --- a/packages/neuron-ui/src/components/NervosDAO/index.tsx +++ b/packages/neuron-ui/src/components/NervosDAO/index.tsx @@ -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 => {