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) {
|
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: {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user