Fix signing issue

This commit is contained in:
liangping
2022-08-28 23:06:25 +08:00
parent 9875281a7d
commit d62cbf14fb
3 changed files with 24 additions and 15 deletions
@@ -358,8 +358,8 @@ export default {
this.sequence = account.sequence
})
this.$http.getBankBalances(this.selectedAddress, this.selectedChain).then(res => {
if (res && res.length > 0) {
this.balance = res.reverse()
if (res.balances && res.balances.length > 0) {
this.balance = res.balances.reverse()
const token = this.balance.find(i => !i.denom.startsWith('ibc'))
this.token = token.denom
if (token) this.feeDenom = token.denom
@@ -391,6 +391,7 @@ export default {
},
async sendTx() {
const txMsgs = this.$refs.component.msg
if (txMsgs.length === 0) {
this.error = 'No delegation found'
return ''