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 /app/scripts | |
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 'app/scripts')
-rw-r--r-- | app/scripts/lib/tx-state-manager.js | 4 |
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) } |