Skip to content

Commit

Permalink
Retry QR invoices by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Dec 2, 2024
1 parent 463b672 commit 9940588
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/item-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function PaymentInfo ({ item, disableRetry, setDisableRetry }) {
>pending
</span>
)
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
Expand Down
2 changes: 1 addition & 1 deletion components/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const useQrPayment = () => {
cancelOnClose = true,
persistOnNavigate = false,
waitFor = inv => inv?.satsReceived > 0,
retry = false
retry = true
} = {}
) => {
let qrInv = inv
Expand Down
2 changes: 1 addition & 1 deletion components/poll.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function Poll ({ item }) {
<span
className='ms-2 fw-bold text-info pointer'
onClick={() => 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
</span>
)
Expand Down

0 comments on commit 9940588

Please sign in to comment.