From ba2ac2c94e10d907ae4c668f67737d5940fc5db0 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 1 Jan 2025 18:18:54 +0100 Subject: [PATCH] Fix ignored cancel error (#1784) --- components/use-qr-payment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/use-qr-payment.js b/components/use-qr-payment.js index 752414d9..8d2167d9 100644 --- a/components/use-qr-payment.js +++ b/components/use-qr-payment.js @@ -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)