Fix lnaddr not returning payment request (#1626)

This commit is contained in:
ekzyis 2024-11-21 02:57:16 +01:00 committed by GitHub
parent 7448cef932
commit 277f8a20fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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
}