diff options
Handling to and amount errors.
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index ed1ff75e5..25a4abda6 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -140,6 +140,7 @@ var actions = { UPDATE_SEND_TO: 'UPDATE_SEND_TO', UPDATE_SEND_AMOUNT: 'UPDATE_SEND_AMOUNT', UPDATE_SEND_MEMO: 'UPDATE_SEND_MEMO', + UPDATE_SEND_ERRORS: 'UPDATE_SEND_ERRORS', updateGasLimit, updateGasPrice, updateGasTotal, @@ -147,6 +148,7 @@ var actions = { updateSendTo, updateSendAmount, updateSendMemo, + updateSendErrors, setSelectedAddress, // app messages confirmSeedWords: confirmSeedWords, @@ -553,6 +555,14 @@ function updateSendMemo (memo) { } } +function updateSendErrors (error) { + console.log(`updateSendErrors error`, error); + return { + type: actions.UPDATE_SEND_ERRORS, + value: error, + } +} + function sendTx (txData) { log.info(`actions - sendTx: ${JSON.stringify(txData.txParams)}`) |