diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-04-05 16:04:12 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-04-06 00:54:41 +0800 |
commit | 418926ffdfabe8aaefbba5abbf44ebbfd838bbfc (patch) | |
tree | 51e020679c76bf237963c431d57f66e44ca40141 /ui/app | |
parent | 54b84e2c3d06528bb5efd7d88df7edcf1088f9ae (diff) | |
download | tangerine-wallet-browser-418926ffdfabe8aaefbba5abbf44ebbfd838bbfc.tar tangerine-wallet-browser-418926ffdfabe8aaefbba5abbf44ebbfd838bbfc.tar.gz tangerine-wallet-browser-418926ffdfabe8aaefbba5abbf44ebbfd838bbfc.tar.bz2 tangerine-wallet-browser-418926ffdfabe8aaefbba5abbf44ebbfd838bbfc.tar.lz tangerine-wallet-browser-418926ffdfabe8aaefbba5abbf44ebbfd838bbfc.tar.xz tangerine-wallet-browser-418926ffdfabe8aaefbba5abbf44ebbfd838bbfc.tar.zst tangerine-wallet-browser-418926ffdfabe8aaefbba5abbf44ebbfd838bbfc.zip |
Fix populating txParams with undefined data
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/send-v2.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js index c3b81da5b..094743ff0 100644 --- a/ui/app/send-v2.js +++ b/ui/app/send-v2.js @@ -576,12 +576,17 @@ SendTransactionScreen.prototype.getEditedTx = function () { data, }) } else { - const data = unapprovedTxs[editingTransactionId].txParams.data + const { data } = unapprovedTxs[editingTransactionId].txParams + Object.assign(editingTx.txParams, { value: ethUtil.addHexPrefix(amount), to: ethUtil.addHexPrefix(to), data, }) + + if (typeof editingTx.txParams.data === 'undefined') { + delete editingTx.txParams.data + } } return editingTx |