aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-04-06 06:02:35 +0800
committerGitHub <noreply@github.com>2018-04-06 06:02:35 +0800
commit17931698a8bb2be77ea9671708135bba79ad2296 (patch)
tree65b9efe161fe27fe9d536b3abe5aafcb15b13748 /app
parent50c36074fb94d0a3de53d32a5aee35f573162397 (diff)
parent418926ffdfabe8aaefbba5abbf44ebbfd838bbfc (diff)
downloadtangerine-wallet-browser-17931698a8bb2be77ea9671708135bba79ad2296.tar
tangerine-wallet-browser-17931698a8bb2be77ea9671708135bba79ad2296.tar.gz
tangerine-wallet-browser-17931698a8bb2be77ea9671708135bba79ad2296.tar.bz2
tangerine-wallet-browser-17931698a8bb2be77ea9671708135bba79ad2296.tar.lz
tangerine-wallet-browser-17931698a8bb2be77ea9671708135bba79ad2296.tar.xz
tangerine-wallet-browser-17931698a8bb2be77ea9671708135bba79ad2296.tar.zst
tangerine-wallet-browser-17931698a8bb2be77ea9671708135bba79ad2296.zip
Merge pull request #3892 from alextsg/gh-3891
Fix populating txParams with undefined data
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/tx-state-manager.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js
index 2ab24d6a0..d8ea17400 100644
--- a/app/scripts/lib/tx-state-manager.js
+++ b/app/scripts/lib/tx-state-manager.js
@@ -108,6 +108,10 @@ module.exports = class TransactionStateManager extends EventEmitter {
updateTx (txMeta, note) {
// validate txParams
if (txMeta.txParams) {
+ if (typeof txMeta.txParams.data === 'undefined') {
+ delete txMeta.txParams.data
+ }
+
this.validateTxParams(txMeta.txParams)
}