From 9940588be5246233bc00208854d9d865b1728c37 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 2 Dec 2024 03:35:34 +0100 Subject: [PATCH] Retry QR invoices by default --- components/item-info.js | 2 +- components/payment.js | 2 +- components/poll.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/item-info.js b/components/item-info.js index c250ef60a..515993f88 100644 --- a/components/item-info.js +++ b/components/item-info.js @@ -300,7 +300,7 @@ function PaymentInfo ({ item, disableRetry, setDisableRetry }) { >pending ) - onClick = () => waitForQrPayment({ id: item.invoice?.id }, null, { cancelOnClose: false, retry: true }).catch(console.error) + onClick = () => waitForQrPayment({ id: item.invoice?.id }, null, { cancelOnClose: false }).catch(console.error) } } else { return null diff --git a/components/payment.js b/components/payment.js index 953bda4f6..646c385c4 100644 --- a/components/payment.js +++ b/components/payment.js @@ -67,7 +67,7 @@ export const useQrPayment = () => { cancelOnClose = true, persistOnNavigate = false, waitFor = inv => inv?.satsReceived > 0, - retry = false + retry = true } = {} ) => { let qrInv = inv diff --git a/components/poll.js b/components/poll.js index d0a3657f2..dc694f801 100644 --- a/components/poll.js +++ b/components/poll.js @@ -52,7 +52,7 @@ export default function Poll ({ item }) { waitForQrPayment( - { id: parseInt(item.poll.meInvoiceId) }, null, { cancelOnClose: false, retry: true }).catch(console.error)} + { id: parseInt(item.poll.meInvoiceId) }, null, { cancelOnClose: false }).catch(console.error)} >vote pending )