Skip to content

Commit

Permalink
skip wallet checking on anon
Browse files Browse the repository at this point in the history
  • Loading branch information
Soxasora committed Feb 15, 2025
1 parent c819a05 commit d672d38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wallets/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ export function useWalletPayment () {
let aggregateError = new WalletAggregateError([])
let latestInvoice = invoice

// throw a special error that caller can handle separately if no payment was attempted
if (wallets.length === 0) {
throw new WalletsNotAvailableError()
}

// anon user cannot pay with wallets
if (!me) {
throw new AnonWalletError()
}

// throw a special error that caller can handle separately if no payment was attempted
if (wallets.length === 0) {
throw new WalletsNotAvailableError()
}

for (let i = 0; i < wallets.length; i++) {
const wallet = wallets[i]
const logger = loggerFactory(wallet)
Expand Down

0 comments on commit d672d38

Please sign in to comment.