Skip to content

Commit

Permalink
cancel invoice before trying fee credit
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Nov 7, 2024
1 parent a5f966b commit 6bffd20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/use-paid-mutation.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export function usePaidMutation (mutation,
// we try one last time using fee credits
try {
console.log('could not pay with any wallet, will try with fee credits...')
await cancelInvoice()
const retry = await retryPaidAction({ variables: { invoiceId: parseInt(invoice.id), forceFeeCredits: true } })
response = retry.data?.retryPaidAction
await cancelInvoice()
Expand Down

0 comments on commit 6bffd20

Please sign in to comment.