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

Commit

Permalink
fix(ui): show correct heading for received payment in modal
Browse files Browse the repository at this point in the history
fix #539
  • Loading branch information
bolatovumar committed Nov 24, 2019
1 parent ac6e3c0 commit df0b4bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TransactionModal extends React.PureComponent {
const { saveInvoice, item, intl } = this.props
const destAddress = get(item, 'dest_addresses[0]')
const amount = item.amount || item.limboAmount || 0
const isIncoming = item.received || item.limboAmount > 0
const isIncoming = item.isReceived || item.limboAmount > 0
const { tx_hash, time_stamp, num_confirmations } = item
saveInvoice({
defaultFilename: tx_hash && `zap-tx-${tx_hash.substring(0, 7)}`,
Expand Down Expand Up @@ -80,7 +80,7 @@ class TransactionModal extends React.PureComponent {
const { intl, item, showNotification, ...rest } = this.props
const destAddress = get(item, 'dest_addresses[0]')
const amount = item.amount || item.limboAmount || 0
const isIncoming = item.received || item.limboAmount > 0
const isIncoming = item.isReceived || item.limboAmount > 0

return (
<Panel {...rest}>
Expand Down

0 comments on commit df0b4bb

Please sign in to comment.