aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-activity-log/transaction-activity-log.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-10-23 19:59:04 +0800
committerGitHub <noreply@github.com>2018-10-23 19:59:04 +0800
commit7852269ed156787eb279e0b55d643c4c13c04020 (patch)
tree01396e0b6b86aa3152c6f1e7ed7ea7267efd0aff /ui/app/components/transaction-activity-log/transaction-activity-log.component.js
parent7b739f9be866a900ef51f2dba80f2fa9e636fe15 (diff)
downloadtangerine-wallet-browser-7852269ed156787eb279e0b55d643c4c13c04020.tar.gz
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.js10
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()
}
}