fix: capture lnbits v1.0+ payments model response (#2162)

This commit is contained in:
Will Sutton 2025-05-14 15:00:08 -04:00 committed by GitHub
parent 6d9d20a8f0
commit d2c71ca08f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,5 +67,5 @@ export async function createInvoice (
}
const payment = await res.json()
return payment.payment_request
return payment?.payment_request || payment?.bolt11
}