From a6cf19c29df85a67b6abe803bf2dddf1767a8049 Mon Sep 17 00:00:00 2001 From: Lee Salminen Date: Mon, 29 Aug 2022 09:33:28 -0600 Subject: [PATCH] potential race condition here, hits is dependent on cards to get the card name in hits --- lnbits/extensions/boltcards/static/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lnbits/extensions/boltcards/static/js/index.js b/lnbits/extensions/boltcards/static/js/index.js index 4d6134f9..c23a2583 100644 --- a/lnbits/extensions/boltcards/static/js/index.js +++ b/lnbits/extensions/boltcards/static/js/index.js @@ -220,6 +220,9 @@ new Vue({ return mapCards(obj) }) }) + .then(function () { + self.getHits() + }) }, getHits: function () { var self = this @@ -417,7 +420,6 @@ new Vue({ created: function () { if (this.g.user.wallets.length) { this.getCards() - this.getHits() this.getRefunds() } }