diff --git a/packages/marginfi-v2-ui-state/src/lib/points.ts b/packages/marginfi-v2-ui-state/src/lib/points.ts index 6268d2ad89..03f03e3793 100644 --- a/packages/marginfi-v2-ui-state/src/lib/points.ts +++ b/packages/marginfi-v2-ui-state/src/lib/points.ts @@ -74,8 +74,6 @@ async function fetchLeaderboardData(connection: Connection, settings: Leaderboar return rtn; } - console.log(settings); - if ( lastOrderCol !== settings.orderCol || (lastOrderDir !== settings.orderDir && settings.pageDirection !== "prev") || @@ -96,7 +94,7 @@ async function fetchLeaderboardData(connection: Connection, settings: Leaderboar const pointsQuery = query( collection(firebaseApi.db, POINTS_DOCUMENT), - + ...(settings.search ? searchQ : [ @@ -150,7 +148,7 @@ async function fetchLeaderboardData(connection: Connection, settings: Leaderboar async function fetchTotalLeaderboardCount() { const q = query(collection(firebaseApi.db, POINTS_DOCUMENT), where("total_points", ">=", 1)); - + const qCount = await getCountFromServer(q); const count = qCount.data().count; return count; @@ -232,7 +230,7 @@ async function fetchUserRank(address: string): Promise { async function fetchTotalUserCount() { const q1 = query(collection(firebaseApi.db, POINTS_DOCUMENT)); const q2 = query(collection(firebaseApi.db, POINTS_DOCUMENT), where("owner", "==", null)); - + const q1Count = await getCountFromServer(q1); const q2Count = await getCountFromServer(q2); return q1Count.data().count - q2Count.data().count;