From 952677ae138dc312241210eacd63fc71e9a55097 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 22 Dec 2022 10:44:56 +0000 Subject: [PATCH] refactor keys --- lnbits/extensions/shop/templates/shop/order.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lnbits/extensions/shop/templates/shop/order.html b/lnbits/extensions/shop/templates/shop/order.html index ab633b54..7fd81747 100644 --- a/lnbits/extensions/shop/templates/shop/order.html +++ b/lnbits/extensions/shop/templates/shop/order.html @@ -270,7 +270,8 @@ products: [], orders: [], user: { - keys: {} + keys: {}, + orders: {} }, keysDialog: { show: false, @@ -353,11 +354,9 @@ const privkey = nostr.generatePrivateKey() const pubkey = nostr.getPublicKey(privkey) - this.user = { - keys: { - privatekey: privkey, - publickey: pubkey - } + this.user.keys = { + privatekey: privkey, + publickey: pubkey } }, async getMessages(room_name, all = false) {