key issues fixed

This commit is contained in:
Tiago vasconcelos
2022-05-16 11:21:30 +01:00
parent 13f490b586
commit caa23e6c9d
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -617,11 +617,12 @@ new Vue({
})
},
updateWalletName: function () {
console.log(this.newName, this.g)
let newName = this.newName
let adminkey = this.g.wallet.adminkey
if (!newName || !newName.length) return
// let data = {name: newName}
LNbits.api
.request('PUT', '/api/v1/wallet/' + newName, this.g.wallet.adminkey, {})
.request('PUT', '/api/v1/wallet/' + newName, adminkey, {})
.then(res => {
this.newName = ''
this.$q.notify({