Skip to content

Commit

Permalink
feat: update leaderboard store to use offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
brayo-pip committed Sep 4, 2024
1 parent eacfb45 commit 666de93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/leaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const useLeaderboardStore = defineStore('leaderboard', {
},
persist: true,
actions: {
fetchLeaderboardData() {
getLeaderboard().then((data) => {
fetchLeaderboardData(offset:number = 0) {
getLeaderboard(offset).then((data) => {
this.leaderboardData = data
})
},
Expand Down

0 comments on commit 666de93

Please sign in to comment.