From d6757ed2cfe522dbca230a7f5552627f3de0d8a6 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 16 Dec 2022 10:29:53 +0200 Subject: [PATCH] chore: code format --- lnbits/core/static/js/wallet.js | 48 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/lnbits/core/static/js/wallet.js b/lnbits/core/static/js/wallet.js index d145e8a26..da3cd935e 100644 --- a/lnbits/core/static/js/wallet.js +++ b/lnbits/core/static/js/wallet.js @@ -259,31 +259,31 @@ new Vue({ this.parse.camera.show = false }, updateBalance: function (credit) { - LNbits.api - .request( - 'PUT', - '/admin/api/v1/topup/?usr=' + this.g.user.id, - this.g.user.wallets[0].adminkey, - { - amount: credit, - id: this.g.user.wallets[0].id - } - ) - .then(response => { - this.$q.notify({ - type: 'positive', - message: - 'Success! Added ' + - credit + - ' sats to ' + - this.g.user.wallets[0].id, - icon: null - }); - this.balance += parseInt(credit); + LNbits.api + .request( + 'PUT', + '/admin/api/v1/topup/?usr=' + this.g.user.id, + this.g.user.wallets[0].adminkey, + { + amount: credit, + id: this.g.user.wallets[0].id + } + ) + .then(response => { + this.$q.notify({ + type: 'positive', + message: + 'Success! Added ' + + credit + + ' sats to ' + + this.g.user.wallets[0].id, + icon: null }) - .catch(function (error) { - LNbits.utils.notifyApiError(error) - }); + this.balance += parseInt(credit) + }) + .catch(function (error) { + LNbits.utils.notifyApiError(error) + }) }, closeReceiveDialog: function () { setTimeout(() => {