Skip to content

Commit

Permalink
Fix splice bug and removing automatic refreshing of tokens when compo…
Browse files Browse the repository at this point in the history
…nent is created
  • Loading branch information
manelgavalda committed Jan 5, 2024
1 parent 63193ce commit a819b05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/js/Pages/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
BalancesChart
},
props: {
tokens: Object,
tokens: Array,
balance: Number,
balances: Object,
transactions: Array,
Expand All @@ -234,7 +234,7 @@
}
},
created() {
this.refreshTokens()
// this.refreshTokens()
this.totals = {
usd: this.balances.totals.at(-1),
Expand All @@ -244,7 +244,7 @@
pricesEur: this.balances.prices_eur.at(-1)
}
this.weeklyLast = this.tokens.splice(0, 7).at(-1)
this.weeklyLast = this.tokens.slice(0, 7).at(-1)
},
methods: {
getDailyChange(index) {
Expand Down

0 comments on commit a819b05

Please sign in to comment.