diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-09-07 05:01:07 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-09-07 05:01:07 +0800 |
commit | a73aecc796c2f2416227508db8e96e22915cfa65 (patch) | |
tree | 7cdc662b5d6bf4dd74a8b3eea5dc7f6bb34a850b /app/scripts/lib | |
parent | 6c83ba762e73419c6db444dde05b3ebe31d7028e (diff) | |
download | tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.gz tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.bz2 tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.lz tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.xz tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.tar.zst tangerine-wallet-browser-a73aecc796c2f2416227508db8e96e22915cfa65.zip |
fix merge and errors disaperaing on update
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/tx-state-manager.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js index 64925c528..eb2a187db 100644 --- a/app/scripts/lib/tx-state-manager.js +++ b/app/scripts/lib/tx-state-manager.js @@ -180,9 +180,12 @@ module.exports = class TransactionStateManger extends ObservableStore { this._setTxStatus(txId, 'confirmed') } - setTxStatusFailed (txId, reason) { + setTxStatusFailed (txId, err) { const txMeta = this.getTx(txId) - txMeta.err = reason + txMeta.err = { + message: err.toString(), + stack: err.stack, + } this.updateTx(txMeta) this._setTxStatus(txId, 'failed') } |