diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-10-23 19:59:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 19:59:04 +0800 |
commit | 7852269ed156787eb279e0b55d643c4c13c04020 (patch) | |
tree | 01396e0b6b86aa3152c6f1e7ed7ea7267efd0aff /ui/app/components/transaction-activity-log/transaction-activity-log.component.js | |
parent | 7b739f9be866a900ef51f2dba80f2fa9e636fe15 (diff) | |
download | tangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.tar tangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.tar.gz tangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.tar.bz2 tangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.tar.lz tangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.tar.xz tangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.tar.zst tangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.zip |
Add Activity Log entry for onchain failures for a transaction. Change scrolling of the transaction list. Remove Transaction Details modal. (#5581)
Diffstat (limited to 'ui/app/components/transaction-activity-log/transaction-activity-log.component.js')
-rw-r--r-- | ui/app/components/transaction-activity-log/transaction-activity-log.component.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/app/components/transaction-activity-log/transaction-activity-log.component.js b/ui/app/components/transaction-activity-log/transaction-activity-log.component.js index c4cf57d14..0e6c2376f 100644 --- a/ui/app/components/transaction-activity-log/transaction-activity-log.component.js +++ b/ui/app/components/transaction-activity-log/transaction-activity-log.component.js @@ -27,10 +27,14 @@ export default class TransactionActivityLog extends PureComponent { } componentDidUpdate (prevProps) { - const { transaction: { history: prevHistory = [] } = {} } = prevProps - const { transaction: { history = [] } = {} } = this.props + const { + transaction: { history: prevHistory = [], txReceipt: { status: prevStatus } = {} } = {}, + } = prevProps + const { + transaction: { history = [], txReceipt: { status } = {} } = {}, + } = this.props - if (prevHistory.length !== history.length) { + if (prevHistory.length !== history.length || prevStatus !== status) { this.setActivites() } } |