Fix ignored cancel error (#1784)

This commit is contained in:
ekzyis 2025-01-01 18:18:54 +01:00 committed by GitHub
parent 4623743c8f
commit ba2ac2c94e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export default function useQrPayment () {
let paid
const cancelAndReject = async (onClose) => {
if (!paid && cancelOnClose) {
const updatedInv = await invoice.cancel(inv).catch(console.error)
const updatedInv = await invoice.cancel(inv)
reject(new InvoiceCanceledError(updatedInv))
}
resolve(inv)