Add comment when err.newInvoice is not set

This commit is contained in:
ekzyis 2024-11-26 07:31:02 +01:00
parent 517d9a9bb9
commit 974e897753
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ export function usePaidMutation (mutation,
if (err instanceof WalletError) {
walletError = err
// wallet payment error handling always creates a new invoice to retry
// unless no wallet was even able to attempt a payment
if (err.newInvoice) walletInvoice = err.newInvoice
}