clean code

This commit is contained in:
liangping 2021-10-16 20:26:59 +08:00
parent e4738927a5
commit 201826913b
2 changed files with 2 additions and 5 deletions

View File

@ -421,8 +421,6 @@ export default {
], ],
}, },
}] }]
console.log(txMsgs)
if (this.token) return ''
if (txMsgs.length === 0) { if (txMsgs.length === 0) {
this.error = 'No delegation found' this.error = 'No delegation found'
@ -459,8 +457,8 @@ export default {
signerData, signerData,
).then(bodyBytes => { ).then(bodyBytes => {
this.$http.broadcastTx(bodyBytes, this.selectedChain).then(res => { this.$http.broadcastTx(bodyBytes, this.selectedChain).then(res => {
setLocalTxHistory({ op: 'vote', hash: res.tx_response.txhash, time: new Date() }) setLocalTxHistory({ op: 'deposit', hash: res.tx_response.txhash, time: new Date() })
this.$bvModal.hide('vote-window') this.$bvModal.hide('deposit-window')
this.$toast({ this.$toast({
component: ToastificationContent, component: ToastificationContent,
props: { props: {

View File

@ -354,7 +354,6 @@ export default {
loadBalance() { loadBalance() {
this.account = this.computeAccount() this.account = this.computeAccount()
if (this.account && this.account.length > 0) this.address = this.account[0].addr if (this.account && this.account.length > 0) this.address = this.account[0].addr
console.log(this.account, this.address)
if (this.address) { if (this.address) {
this.$http.getBankBalances(this.address, this.selectedChain).then(res => { this.$http.getBankBalances(this.address, this.selectedChain).then(res => {
if (res && res.length > 0) { if (res && res.length > 0) {