Skip to content

Commit

Permalink
Fix lnaddr not returning payment request (#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis authored Nov 21, 2024
1 parent 7448cef commit 277f8a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallets/lightning-address/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export const createInvoice = async (

const body = await res.json()
if (body.status === 'ERROR') {
throw new Error(res.reason)
throw new Error(body.reason)
}

return res.pr
return body.pr
}

0 comments on commit 277f8a2

Please sign in to comment.