From 64166cc156e23478757948f3c69dd7008eeda94f Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 22 Aug 2019 11:52:34 +0800 Subject: [PATCH] feat(neuron-ui): set the cycles to empty if the transaction is invalid --- packages/neuron-ui/src/components/Send/hooks.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/neuron-ui/src/components/Send/hooks.ts b/packages/neuron-ui/src/components/Send/hooks.ts index f77829c74b..0d14c1955e 100644 --- a/packages/neuron-ui/src/components/Send/hooks.ts +++ b/packages/neuron-ui/src/components/Send/hooks.ts @@ -126,6 +126,11 @@ const useOnTransactionChange = (walletID: string, items: TransactionOutput[], di payload: '0', }) }) + } else { + dispatch({ + type: AppActions.UpdateSendCycles, + payload: '0', + }) } }, 300) }, [walletID, items, dispatch])