remove pubkey on add in drawer
This commit is contained in:
parent
d106879a09
commit
301017633a
1 changed files with 1 additions and 4 deletions
|
|
@ -327,7 +327,6 @@ const market = async () => {
|
||||||
return LNbits.utils.formatCurrency(amount, unit)
|
return LNbits.utils.formatCurrency(amount, unit)
|
||||||
},
|
},
|
||||||
async addPubkey(pubkey) {
|
async addPubkey(pubkey) {
|
||||||
console.log(pubkey, this.inputPubkey)
|
|
||||||
if (!pubkey) {
|
if (!pubkey) {
|
||||||
pubkey = String(this.inputPubkey).trim()
|
pubkey = String(this.inputPubkey).trim()
|
||||||
}
|
}
|
||||||
|
|
@ -340,9 +339,6 @@ const market = async () => {
|
||||||
pubkey = data.pubkey
|
pubkey = data.pubkey
|
||||||
givenRelays = data.relays
|
givenRelays = data.relays
|
||||||
}
|
}
|
||||||
console.log(pubkey)
|
|
||||||
this.pubkeys.add(pubkey)
|
|
||||||
this.inputPubkey = null
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
}
|
}
|
||||||
|
|
@ -350,6 +346,7 @@ const market = async () => {
|
||||||
pubkey = pubkey
|
pubkey = pubkey
|
||||||
}
|
}
|
||||||
this.pubkeys.add(pubkey)
|
this.pubkeys.add(pubkey)
|
||||||
|
this.inputPubkey = null
|
||||||
this.$q.localStorage.set(
|
this.$q.localStorage.set(
|
||||||
`diagonAlley.merchants`,
|
`diagonAlley.merchants`,
|
||||||
Array.from(this.pubkeys)
|
Array.from(this.pubkeys)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue