Browse Source

Uniq senders in OperationDetails

master
meriadec 7 years ago
parent
commit
cfc47ef418
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 4
      src/components/modals/OperationDetails.js

4
src/components/modals/OperationDetails.js

@ -1,6 +1,7 @@
// @flow // @flow
import React from 'react' import React from 'react'
import uniq from 'lodash/uniq'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import { shell } from 'electron' import { shell } from 'electron'
import { translate } from 'react-i18next' import { translate } from 'react-i18next'
@ -78,6 +79,7 @@ const OperationDetails = connect(mapStateToProps)((props: Props) => {
const isConfirmed = confirmations >= currencySettings.confirmationsNb const isConfirmed = confirmations >= currencySettings.confirmationsNb
const url = getTxURL(account, operation) const url = getTxURL(account, operation)
const uniqSenders = uniq(senders)
return ( return (
<ModalBody onClose={onClose}> <ModalBody onClose={onClose}>
@ -132,7 +134,7 @@ const OperationDetails = connect(mapStateToProps)((props: Props) => {
<B /> <B />
<Line> <Line>
<ColLeft>From</ColLeft> <ColLeft>From</ColLeft>
<ColRight>{senders.map(v => <CanSelect key={v}> {v} </CanSelect>)}</ColRight> <ColRight>{uniqSenders.map(v => <CanSelect key={v}>{v}</CanSelect>)}</ColRight>
</Line> </Line>
<B /> <B />
<Line> <Line>

Loading…
Cancel
Save