clean code
This commit is contained in:
parent
e4738927a5
commit
201826913b
@ -421,8 +421,6 @@ export default {
|
||||
],
|
||||
},
|
||||
}]
|
||||
console.log(txMsgs)
|
||||
if (this.token) return ''
|
||||
|
||||
if (txMsgs.length === 0) {
|
||||
this.error = 'No delegation found'
|
||||
@ -459,8 +457,8 @@ export default {
|
||||
signerData,
|
||||
).then(bodyBytes => {
|
||||
this.$http.broadcastTx(bodyBytes, this.selectedChain).then(res => {
|
||||
setLocalTxHistory({ op: 'vote', hash: res.tx_response.txhash, time: new Date() })
|
||||
this.$bvModal.hide('vote-window')
|
||||
setLocalTxHistory({ op: 'deposit', hash: res.tx_response.txhash, time: new Date() })
|
||||
this.$bvModal.hide('deposit-window')
|
||||
this.$toast({
|
||||
component: ToastificationContent,
|
||||
props: {
|
||||
|
@ -354,7 +354,6 @@ export default {
|
||||
loadBalance() {
|
||||
this.account = this.computeAccount()
|
||||
if (this.account && this.account.length > 0) this.address = this.account[0].addr
|
||||
console.log(this.account, this.address)
|
||||
if (this.address) {
|
||||
this.$http.getBankBalances(this.address, this.selectedChain).then(res => {
|
||||
if (res && res.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user