Skip to content

Commit

Permalink
Remove extraneous logging
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Jan 10, 2024
1 parent 197347d commit 2ca9c65
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ export const loader: LoaderFunction = async ({ params, request }) => {
const { data: globalLeaderboardData, errors: globalLeaderboardErrors } =
await useAllQuery();

console.log("globalLeaderboardErrors", globalLeaderboardErrors);

if (!globalLeaderboardData || globalLeaderboardErrors)
throw globalLeaderboardErrors;

Expand All @@ -89,7 +87,6 @@ export const loader: LoaderFunction = async ({ params, request }) => {
!address ||
leaderboard.find(({ user: rowAddress }) => rowAddress === address)
) {
console.log("returning leaderboard early", leaderboard);
return json({
leaderboard,
loaded: true,
Expand All @@ -99,8 +96,6 @@ export const loader: LoaderFunction = async ({ params, request }) => {
const { data: userLeaderboardData, errors: userLeaderboardErrors } =
await useUserQuery(address);

console.log("userLeaderboardErrors", userLeaderboardErrors);

if (!userLeaderboardData || userLeaderboardErrors)
throw userLeaderboardErrors;

Expand All @@ -124,14 +119,11 @@ export const loader: LoaderFunction = async ({ params, request }) => {
]
).concat(leaderboard);

console.log("asssssssss", jointLeaderboardData);

return json({
leaderboard: jointLeaderboardData,
loaded: true,
} satisfies AirdropLeaderboardLoaderData);
} catch (err) {
console.log("err", err);
captureException(new Error(`Could not fetch airdrop data: ${err}`), {
tags: {
section: "network/index",
Expand Down

0 comments on commit 2ca9c65

Please sign in to comment.