From 985e27c085444b2a13772a6ba6fac7f67af31d32 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 2 Feb 2024 16:41:42 +0100 Subject: [PATCH] logs --- packages/data-layer/src/backends/legacy.ts | 3 +++ packages/grant-explorer/src/features/api/rounds.ts | 1 + .../src/features/discovery/LandingPage.tsx | 10 ++++++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/data-layer/src/backends/legacy.ts b/packages/data-layer/src/backends/legacy.ts index 37f2b16f78..2d268035f9 100644 --- a/packages/data-layer/src/backends/legacy.ts +++ b/packages/data-layer/src/backends/legacy.ts @@ -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; }; diff --git a/packages/grant-explorer/src/features/api/rounds.ts b/packages/grant-explorer/src/features/api/rounds.ts index 69f5de4046..8e41720399 100644 --- a/packages/grant-explorer/src/features/api/rounds.ts +++ b/packages/grant-explorer/src/features/api/rounds.ts @@ -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 diff --git a/packages/grant-explorer/src/features/discovery/LandingPage.tsx b/packages/grant-explorer/src/features/discovery/LandingPage.tsx index 8c1c86cd8b..e761e61959 100644 --- a/packages/grant-explorer/src/features/discovery/LandingPage.tsx +++ b/packages/grant-explorer/src/features/discovery/LandingPage.tsx @@ -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);