Fix ignored cancel error (#1784)
This commit is contained in:
parent
4623743c8f
commit
ba2ac2c94e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue