aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-13 13:56:37 +0800
committerDan <danjm.com@gmail.com>2018-03-13 13:56:37 +0800
commit179066fe6ba3eca002454981c5ef56df7bb142ab (patch)
tree02eef78c5d230331e16e35f1612d9d740c7ab844 /ui
parente6d1ce56e7b792957f7b5c3249ecf013752b87ed (diff)
downloadtangerine-wallet-browser-179066fe6ba3eca002454981c5ef56df7bb142ab.tar
tangerine-wallet-browser-179066fe6ba3eca002454981c5ef56df7bb142ab.tar.gz
tangerine-wallet-browser-179066fe6ba3eca002454981c5ef56df7bb142ab.tar.bz2
tangerine-wallet-browser-179066fe6ba3eca002454981c5ef56df7bb142ab.tar.lz
tangerine-wallet-browser-179066fe6ba3eca002454981c5ef56df7bb142ab.tar.xz
tangerine-wallet-browser-179066fe6ba3eca002454981c5ef56df7bb142ab.tar.zst
tangerine-wallet-browser-179066fe6ba3eca002454981c5ef56df7bb142ab.zip
Set txMeta.time to reflect time of tx approval.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-ether.js b/ui/app/components/pending-tx/confirm-send-ether.js
index 8788a77f8..899c2617c 100644
--- a/ui/app/components/pending-tx/confirm-send-ether.js
+++ b/ui/app/components/pending-tx/confirm-send-ether.js
@@ -457,7 +457,7 @@ ConfirmSendEther.prototype.render = function () {
ConfirmSendEther.prototype.onSubmit = function (event) {
event.preventDefault()
- const txMeta = this.gatherTxMeta()
+ const txMeta = this.gatherTxMeta({ time: (new Date()).getTime() })
const valid = this.checkValidity()
this.setState({ valid, submitting: true })
@@ -492,7 +492,7 @@ ConfirmSendEther.prototype.getFormEl = function () {
}
// After a customizable state value has been updated,
-ConfirmSendEther.prototype.gatherTxMeta = function () {
+ConfirmSendEther.prototype.gatherTxMeta = function (opts) {
const props = this.props
const state = this.state
const txData = clone(state.txData) || clone(props.txData)
@@ -506,7 +506,7 @@ ConfirmSendEther.prototype.gatherTxMeta = function () {
}
// log.debug(`UI has defaulted to tx meta ${JSON.stringify(txData)}`)
- return txData
+ return Object.assign(txData, opts)
}
ConfirmSendEther.prototype.verifyGasParams = function () {