Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): always display payment route
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Nov 7, 2020
1 parent 62302b8 commit cbb1293
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions renderer/components/Activity/PaymentModal/PaymentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class PaymentModal extends React.PureComponent {
const { item, intl, ...rest } = this.props
const memo = item && getTag(item.paymentRequest, 'description')
const htlcs = item.htlcs.filter(htlc => htlc.status === 'SUCCEEDED')
const isMpp = htlcs.length > 1
const isRouted = htlcs.filter(htlc => htlc.route.hops.length > 1).length > 0

return (
<Panel {...rest}>
Expand Down Expand Up @@ -111,16 +109,12 @@ class PaymentModal extends React.PureComponent {
}
/>

{(isMpp || isRouted) && (
<>
<Bar variant="light" />
<Bar variant="light" />

<DataRow
left={<FormattedMessage {...messages.htlc_title} />}
right={<Route htlcs={htlcs} />}
/>
</>
)}
<DataRow
left={<FormattedMessage {...messages.htlc_title} />}
right={<Route htlcs={htlcs} />}
/>
</Panel.Body>
</Panel>
)
Expand Down

0 comments on commit cbb1293

Please sign in to comment.