Skip to content

Commit 666de93

Browse files
committed
feat: update leaderboard store to use offsets
1 parent eacfb45 commit 666de93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stores/leaderboard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export const useLeaderboardStore = defineStore('leaderboard', {
1313
},
1414
persist: true,
1515
actions: {
16-
fetchLeaderboardData() {
17-
getLeaderboard().then((data) => {
16+
fetchLeaderboardData(offset:number = 0) {
17+
getLeaderboard(offset).then((data) => {
1818
this.leaderboardData = data
1919
})
2020
},

0 commit comments

Comments
 (0)