aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-21 06:41:18 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-12-21 09:37:18 +0800
commite7e1b7a95180597308bd167bd4a152bbbf53ff21 (patch)
tree6feee466059943dd6cf7f52ccd12d8820a6f9a30 /ui
parent9ced63584bc93cf6ac82786dec0984b5022346ae (diff)
downloadtangerine-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.js13
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) {