From f6f620982ed950202c63c4b17ceb39f044a6b298 Mon Sep 17 00:00:00 2001 From: Matt Kirby <MattJKirby@outlook.com> Date: Thu, 20 Apr 2023 18:31:51 +0100 Subject: [PATCH] Removed debugging --- daily-thought-frontend/src/hooks/useQuestion.ts | 1 - daily-thought-frontend/src/hooks/useUser.ts | 1 - daily-thought-frontend/src/pages/feed.tsx | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/daily-thought-frontend/src/hooks/useQuestion.ts b/daily-thought-frontend/src/hooks/useQuestion.ts index d0040e49..fe8d49c5 100644 --- a/daily-thought-frontend/src/hooks/useQuestion.ts +++ b/daily-thought-frontend/src/hooks/useQuestion.ts @@ -24,7 +24,6 @@ export const useQuestion = () => { if (!rehydrateQuestion) return; fetchQuestion().then((res) => { - console.log('q', res); setQuestion(res); setRehydrateQuestion(false); }); diff --git a/daily-thought-frontend/src/hooks/useUser.ts b/daily-thought-frontend/src/hooks/useUser.ts index 86c17949..78d3cf7a 100644 --- a/daily-thought-frontend/src/hooks/useUser.ts +++ b/daily-thought-frontend/src/hooks/useUser.ts @@ -29,7 +29,6 @@ export const useUser = () => { if (!rehydrateUser) return; fetchUser().then((res) => { - console.log('u', res); const { _id, username, email, profile, firstName, lastName } = res; setUser({ id: _id, email, username, profile, firstName, lastName }); setRehydrateUser(false); diff --git a/daily-thought-frontend/src/pages/feed.tsx b/daily-thought-frontend/src/pages/feed.tsx index 2e2f0c3e..5307b2d4 100644 --- a/daily-thought-frontend/src/pages/feed.tsx +++ b/daily-thought-frontend/src/pages/feed.tsx @@ -20,6 +20,7 @@ const Feed = () => { const [postComplete, setPostComplete] = useState<boolean>(false); console.log(feed); + console.log(feedUsers); useEffect(() => { if (question === undefined && user === undefined) { @@ -39,8 +40,6 @@ const Feed = () => { setRehydrateFeed(true); }; - console.log(feedUsers, 'JDKL', feed); - return ( <div className="w-full h-screen flex flex-col"> <div className=""> @@ -104,8 +103,6 @@ const Feed = () => { {feed.feed.map((feedPost: FeedPost) => { const feedUser = feedUsers.get(feedPost.userId); - console.log(feedUser); - if (feedUser !== undefined && user !== undefined) { return ( <Post -- GitLab