mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 18:51:05 +01:00
logging
This commit is contained in:
parent
ef2b4b4194
commit
793745a48e
@ -1070,14 +1070,12 @@ page_container %}
|
||||
.reduce((sum, el) => (sum += el.amount), 0)
|
||||
},
|
||||
getTokenList: function () {
|
||||
console.log(this.proofs)
|
||||
const amounts = this.proofs.map(t => t.amount)
|
||||
const counts = {}
|
||||
|
||||
for (const num of amounts) {
|
||||
counts[num] = counts[num] ? counts[num] + 1 : 1
|
||||
}
|
||||
console.log('counts', counts)
|
||||
return Object.keys(counts).map(k => ({
|
||||
value: parseInt(k),
|
||||
count: parseInt(counts[k]),
|
||||
|
Loading…
Reference in New Issue
Block a user