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

Commit

Permalink
fix(ui): ensure destination is displayed during sending payments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 14, 2020
1 parent bef5f6e commit e2d5e7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions renderer/reducers/payment/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const payInvoice = ({
value: amt,
remainingRetries: retries,
paymentRequest: payload.paymentRequest,
dest: payload.dest && payload.dest.toString('hex'),
maxRetries: retries,
isKeysend,
})
Expand Down
2 changes: 1 addition & 1 deletion renderer/reducers/payment/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const decoratePayment = (payment, nodes = []) => {

// First try to get the pubkey from payment.htlcs list (lnd 0.9+)
// Fallback to looking in the legacy payment.path property.
let pubkey
let pubkey = payment.dest
if (payment.htlcs) {
const hops = get(payment, 'htlcs[0].route.hops', [])
const lasthop = hops[hops.length - 1]
Expand Down

0 comments on commit e2d5e7e

Please sign in to comment.