diff options
author | Dan <danjm.com@gmail.com> | 2017-12-21 06:41:18 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-12-21 09:37:18 +0800 |
commit | e7e1b7a95180597308bd167bd4a152bbbf53ff21 (patch) | |
tree | 6feee466059943dd6cf7f52ccd12d8820a6f9a30 /ui | |
parent | 9ced63584bc93cf6ac82786dec0984b5022346ae (diff) | |
download | tangerine-wallet-browser-e7e1b7a95180597308bd167bd4a152bbbf53ff21.tar.gz tangerine-wallet-browser-e7e1b7a95180597308bd167bd4a152bbbf53ff21.tar.zst tangerine-wallet-browser-e7e1b7a95180597308bd167bd4a152bbbf53ff21.zip |
Clone transaction while editing instead of mutating object from state.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/send-v2.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js index cf9e709d4..b7f2e7277 100644 --- a/ui/app/send-v2.js +++ b/ui/app/send-v2.js @@ -566,12 +566,13 @@ SendTransactionScreen.prototype.getEditedTx = function () { unapprovedTxs, } = this.props - const editingTx = unapprovedTxs[editingTransactionId] - - editingTx.txParams = { - from: ethUtil.addHexPrefix(from), - gas: ethUtil.addHexPrefix(gas), - gasPrice: ethUtil.addHexPrefix(gasPrice), + const editingTx = { + ...unapprovedTxs[editingTransactionId], + txParams: { + from: ethUtil.addHexPrefix(from), + gas: ethUtil.addHexPrefix(gas), + gasPrice: ethUtil.addHexPrefix(gasPrice), + } } if (selectedToken) { |