Skip to content

Commit

Permalink
Fix contractInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevPM committed Oct 13, 2023
1 parent cb95459 commit 06c0fa3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/views/contract/InfoSection/ContractInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item v-if="balance">
<v-list-item>
<v-list-item-content>
<v-list-item-subtitle class="overline"
>Balance</v-list-item-subtitle
Expand All @@ -49,13 +49,15 @@
<AccountBox
v-if="contract.manager"
title="Deployed by"
:key="contract.address"
:address="contract.manager"
:network="contract.network"
gutters
/>
<AccountBox
v-if="contract.delegate"
title="Delegated to"
:key="contract.address"
:address="contract.delegate"
:network="contract.network"
gutters
Expand Down Expand Up @@ -104,9 +106,6 @@ export default {
isPaidUsedLoading: true,
paidUsed: null,
}),
mounted() {
this.getInfo();
},
computed: {
isLoading() {
return this.isUsedBytesLoading || this.isPaidUsedLoading
Expand Down Expand Up @@ -134,5 +133,13 @@ export default {
.finally(() => (this.isPaidUsedLoading = false))
},
},
watch: {
address: {
immediate: true,
handler() {
this.getInfo();
},
},
},
};
</script>

0 comments on commit 06c0fa3

Please sign in to comment.