diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-03-09 23:31:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-09 23:31:17 +0800 |
commit | d84341f323505e3dec4b13a200e6022747fa58fc (patch) | |
tree | 03b9259ef9bf78165261aeb2cabf5ad5c5d5cd46 | |
parent | 4b2e52795d52cfcf227ee56fba9f975e057e846d (diff) | |
download | tangerine-wallet-browser-d84341f323505e3dec4b13a200e6022747fa58fc.tar tangerine-wallet-browser-d84341f323505e3dec4b13a200e6022747fa58fc.tar.gz tangerine-wallet-browser-d84341f323505e3dec4b13a200e6022747fa58fc.tar.bz2 tangerine-wallet-browser-d84341f323505e3dec4b13a200e6022747fa58fc.tar.lz tangerine-wallet-browser-d84341f323505e3dec4b13a200e6022747fa58fc.tar.xz tangerine-wallet-browser-d84341f323505e3dec4b13a200e6022747fa58fc.tar.zst tangerine-wallet-browser-d84341f323505e3dec4b13a200e6022747fa58fc.zip |
Add empty object default value for tokenData (#3493)
-rw-r--r-- | ui/app/components/pending-tx/confirm-send-token.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-token.js b/ui/app/components/pending-tx/confirm-send-token.js index e4b0c186a..dd2bef3da 100644 --- a/ui/app/components/pending-tx/confirm-send-token.js +++ b/ui/app/components/pending-tx/confirm-send-token.js @@ -63,8 +63,8 @@ function mapDispatchToProps (dispatch, ownProps) { updateTokenExchangeRate: () => dispatch(actions.updateTokenExchangeRate(symbol)), editTransaction: txMeta => { const { token: { address } } = ownProps - const { txParams, id } = txMeta - const tokenData = txParams.data && abiDecoder.decodeMethod(txParams.data) + const { txParams = {}, id } = txMeta + const tokenData = txParams.data && abiDecoder.decodeMethod(txParams.data) || {} const { params = [] } = tokenData const { value: to } = params[0] || {} const { value: tokenAmountInDec } = params[1] || {} |