diff --git a/src/views/WalletAccounts.vue b/src/views/WalletAccounts.vue index 01a35f58..cd60ac27 100644 --- a/src/views/WalletAccounts.vue +++ b/src/views/WalletAccounts.vue @@ -52,6 +52,11 @@ > {{ formatTotalChange(calculateTotalChange) }} (24h) + + b[1] - a[1]).forEach(i => { + labels.push(i[0]) + data.push(i[1]) + }) return { datasets: [ { - labels: Object.keys(total.value), - data: Object.values(total.value), + labels, + data, backgroundColor: chartColors(), borderWidth: 0, pointStyle: 'rectRounded', @@ -513,6 +524,9 @@ export default { mounted() { }, methods: { + refreshPrice() { + this.$store.dispatch('chains/getQuotes') + }, init() { this.accounts = getLocalAccounts() const chains = getLocalChains()