Skip to content

Commit

Permalink
fix(User dashboard): fix fetch user prices today. ref #1179
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Dec 27, 2024
1 parent 44b19d5 commit 2d98203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/UserDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default {
return this.appStore.user.username
},
displayTodayStats() {
return this.userTodayPriceCount || this.userTodayProofCount
return !!this.userTodayPriceCount || !!this.userTodayProofCount
},
displayedPriceList() {
if (!this.$vuetify.display.smAndUp) {
Expand Down Expand Up @@ -161,7 +161,7 @@ export default {
if (today) {
params.created__gte = utils.currentStartOfDay()
}
return api.getProofs(params)
return api.getPrices(params)
.then((data) => {
if (today) {
this.userTodayPriceCount = data.total
Expand Down

0 comments on commit 2d98203

Please sign in to comment.