Skip to content

Commit

Permalink
chore: remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Dec 3, 2024
1 parent f78e6d0 commit b23ea0b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/marginfi-v2-ui-state/src/lib/points.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") ||
Expand All @@ -96,7 +94,7 @@ async function fetchLeaderboardData(connection: Connection, settings: Leaderboar

const pointsQuery = query(
collection(firebaseApi.db, POINTS_DOCUMENT),

...(settings.search
? searchQ
: [
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -232,7 +230,7 @@ async function fetchUserRank(address: string): Promise<number> {
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;
Expand Down

0 comments on commit b23ea0b

Please sign in to comment.