From 3efb3041d5d162f696e3abdef00398b04b9b54f0 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 10 Oct 2022 14:22:00 +0300 Subject: [PATCH] chore: here and there --- .../cashu/templates/cashu/wallet.html | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/lnbits/extensions/cashu/templates/cashu/wallet.html b/lnbits/extensions/cashu/templates/cashu/wallet.html index 9a29ed79..c9f1b555 100644 --- a/lnbits/extensions/cashu/templates/cashu/wallet.html +++ b/lnbits/extensions/cashu/templates/cashu/wallet.html @@ -94,6 +94,12 @@ page_container %} Recheck +
+ +
(bt.hash = hash)) + console.log('### recheckBuyOrder.hash', hash) + const tokens = this.tokens.find(bt => (bt.hash === hash)) + console.log('### recheckBuyOrder.tokens', tokens) if (!tokens) { console.error('####### no token for hash', hash) return @@ -906,6 +913,12 @@ page_container %} ) if (promises && promises.length) { tokens.promises = promises + tokens.status = 'paid' + this.storeTokens() + + const buyOrder = this.buyOrders.find(bo => bo.hash === hash) + buyOrder.status = 'paid' + this.storeBuyOrders() } }, @@ -1043,7 +1056,8 @@ page_container %} localStorage.getItem('cashu.buyOrders') || '[]' ) this.tokens = JSON.parse(localStorage.getItem('cashu.tokens') || '[]') - console.log('#### this.buyOrders', this.buyOrders) + console.table(this.buyOrders) + console.table(this.tokens) console.log('#### this.mintId', this.mintId) console.log('#### this.mintName', this.mintName)