Fix TypeError
This commit is contained in:
parent
bc0c6d1038
commit
7742257470
@ -86,7 +86,7 @@ export function useWalletPayment () {
|
|||||||
// if we reach this line, no wallet payment succeeded
|
// if we reach this line, no wallet payment succeeded
|
||||||
|
|
||||||
// if no wallet is enabled, throw a special error that caller can handle separately
|
// 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) {
|
if (noWalletAvailable) {
|
||||||
throw new NoWalletAvailableError()
|
throw new NoWalletAvailableError()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user