Skip to content

Commit

Permalink
feat(neuron-ui): set the cycles to empty if the transaction is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 22, 2019
1 parent c31dccb commit 64166cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/neuron-ui/src/components/Send/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ const useOnTransactionChange = (walletID: string, items: TransactionOutput[], di
payload: '0',
})
})
} else {
dispatch({
type: AppActions.UpdateSendCycles,
payload: '0',
})
}
}, 300)
}, [walletID, items, dispatch])
Expand Down

0 comments on commit 64166cc

Please sign in to comment.