Fix TypeError

This commit is contained in:
ekzyis 2024-11-26 03:28:28 +01:00
parent bc0c6d1038
commit 7742257470
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ export function useWalletPayment () {
// if we reach this line, no wallet payment succeeded
// if no wallet is enabled, throw a special error that caller can handle separately
const noWalletAvailable = walletError.errors.all(e => e instanceof WalletNotEnabledError)
const noWalletAvailable = walletError.errors.every(e => e instanceof WalletNotEnabledError)
if (noWalletAvailable) {
throw new NoWalletAvailableError()
}