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)