Cashu fix: token spendable check (#1445)

This commit is contained in:
calle 2023-02-03 07:41:01 +01:00 committed by GitHub
parent 8c4dfb5d28
commit 0dca98ca2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2085,7 +2085,7 @@ page_container %}
const proofs = JSON.parse(tokenJson)
const spendable = await this.checkProofsSpendable(proofs)
let paid = false
if (spendable.includes(true)) {
if (spendable.includes(false)) {
this.setTokenPaid(token)
paid = true
}