check if token already received
This commit is contained in:
parent
f698074f89
commit
a6669fa78b
|
@ -2149,9 +2149,19 @@ page_container %}
|
|||
|
||||
// get recv_token
|
||||
if (params.get('recv_token')) {
|
||||
tokenBase64 = params.get('recv_token')
|
||||
let seen = false
|
||||
for (var i = 0; i < this.historyTokens.length; i++) {
|
||||
var thisToken = this.historyTokens[i].token
|
||||
if (thisToken == tokenBase64) {
|
||||
seen = true
|
||||
}
|
||||
}
|
||||
if (!seen) {
|
||||
this.receiveData.tokensBase64 = params.get('recv_token')
|
||||
this.showReceiveTokens = true
|
||||
}
|
||||
}
|
||||
|
||||
console.log('### invoicesCashu', this.invoicesCashu)
|
||||
console.table('### tokens', this.proofs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user