Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed Feb 2, 2024
1 parent 12301fb commit 985e27c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/data-layer/src/backends/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,11 @@ export const getRounds = async (
}),
);
rounds = rounds.flat();
console.log("rounds1", [...rounds]);
rounds = cleanRoundData(rounds);
console.log("rounds2", [...rounds]);
rounds = sortRounds(rounds, params);
console.log("rounds3", [...rounds]);
return rounds;
};

Expand Down
1 change: 1 addition & 0 deletions packages/grant-explorer/src/features/api/rounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export const useRounds = (
// same, cache will be used instead of new requests)
["rounds", chainIds, variables],
async () => {
console.log("Fetching rounds", chainIds, variables);
const { rounds } = await dataLayer.getLegacyRounds({
...variables,
// We need to overfetch these because many will be filtered out from the
Expand Down
10 changes: 6 additions & 4 deletions packages/grant-explorer/src/features/discovery/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ const LandingPage = () => {
ACTIVE_ROUNDS_FILTER,
getEnabledChains()
);
const roundsEndingSoon = useFilterRounds(
ROUNDS_ENDING_SOON_FILTER,
getEnabledChains()
);
// const roundsEndingSoon = useFilterRounds(
// ROUNDS_ENDING_SOON_FILTER,
// getEnabledChains()
// );
//
const roundsEndingSoon = { data: undefined };

console.log("activeRounds", activeRounds);

Expand Down

0 comments on commit 985e27c

Please sign in to comment.