fix: capture lnbits v1.0+ payments model response (#2162)
This commit is contained in:
parent
6d9d20a8f0
commit
d2c71ca08f
@ -67,5 +67,5 @@ export async function createInvoice (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const payment = await res.json()
|
const payment = await res.json()
|
||||||
return payment.payment_request
|
return payment?.payment_request || payment?.bolt11
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user