diff --git a/src/store/api/leaderboard/transformer.js b/src/store/api/leaderboard/transformer.js index 7693483..41782ff 100644 --- a/src/store/api/leaderboard/transformer.js +++ b/src/store/api/leaderboard/transformer.js @@ -1,4 +1,4 @@ -import { default as orderBy } from "lodash"; +import { default as orderBy } from "lodash/orderBy"; import { isRegex } from "@/utils"; const transformLeaderboardData = (response, _, arg) => { @@ -33,6 +33,8 @@ const transformLeaderboardData = (response, _, arg) => { const totalPages = Math.ceil(response.data.length / 10); response.data = response.data.slice((page - 1) * 10, page * 10); + console.log(response.data, 88); + return { data: { docs: response.data,