Skip to content

Commit

Permalink
Remove duplicated clocks on active tx row
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomg committed Nov 2, 2018
1 parent d376523 commit 47bf4ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Common/TxProgressStatus.js
Expand Up @@ -19,7 +19,7 @@ export class TxProgressStatus extends Component {
const table = []

txMap.forEach((status, name) => {
table.push({ name, status })
table.push({ name, status: status.slice() })
})

return table
Expand Down Expand Up @@ -73,7 +73,7 @@ export class TxProgressStatus extends Component {
}

getStatusIcon(txStatus, index) {
if (this.isTxStatusActive(txStatus)) {
if (txStatus[index] && this.isTxStatusActive(txStatus)) {
return <TxStatusIconClockActive />
} else if (txStatus[index] && !txStatus[index].mined) {
return <TxStatusIconClock />
Expand Down Expand Up @@ -117,7 +117,7 @@ export class TxProgressStatus extends Component {

render() {
const { tierStore, extraClassName = '' } = this.props
const whitelisted = tierStore.tiers.map((tier, index) => (index === 0 ? true : tier.whitelistEnabled === 'yes'))
const whitelisted = tierStore.tiers.map(tier => tier.whitelistEnabled === 'yes')
const tableContent = this.txStatuses()

return tableContent.length ? (
Expand Down

0 comments on commit 47bf4ce

Please sign in to comment.