Skip to content

Commit

Permalink
Fix: leaderboard crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Oct 6, 2024
1 parent 35cd8c0 commit 9b20efa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/api/leaderboard/transformer.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9b20efa

Please sign in to comment.