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

Loading…
Cancel
Save