Add comment when err.newInvoice is not set
This commit is contained in:
parent
517d9a9bb9
commit
974e897753
@ -43,6 +43,7 @@ export function usePaidMutation (mutation,
|
|||||||
if (err instanceof WalletError) {
|
if (err instanceof WalletError) {
|
||||||
walletError = err
|
walletError = err
|
||||||
// wallet payment error handling always creates a new invoice to retry
|
// 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
|
if (err.newInvoice) walletInvoice = err.newInvoice
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user