Fix lnaddr not returning payment request (#1626)
This commit is contained in:
parent
7448cef932
commit
277f8a20fb
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue