Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Mar 1, 2024
1 parent 22c2371 commit b3bd784
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/posts/LatestPostsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const loadMorePostsFn = async (loadMoreValues: LoadMoreValues<PostFilterT
const posts = await getHotPosts({ offset, limit: DEFAULT_PAGE_SIZE })
postIds = posts.data.map(value => value.persistentPostId)
const pinnedPostId = await getPinnedPost(client)
console.log('pinnedPostId', pinnedPostId)
if (offset === 0) {
postIds = Array.from(new Set([pinnedPostId, ...postIds].filter(Boolean) as string[]))
} else {
Expand Down
1 change: 0 additions & 1 deletion src/components/posts/loadSuggestedPostIdsFromEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const loadSuggestedPostIds = async ({
getPostIdsBySpaces(client, { spaceIds: recommendedIds }),
getPinnedPost(client),
] as const)
console.log('pinnedPostId suggested', pinnedPostId)

return Array.from(new Set([pinnedPostId, ...postIds].filter(Boolean) as string[]))
}
Expand Down
1 change: 0 additions & 1 deletion src/components/posts/pinned-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export async function getPinnedPost(client: GqlClient | undefined) {
try {
const postIds = await getLast3CommunityHighlights(client)
const randomIndex = Math.min(randomizedIndex, postIds.length - 1)
console.log(postIds, randomIndex, postIds[randomIndex])
randomizedPostId = postIds[randomIndex]
return randomizedPostId
} catch (err) {
Expand Down

0 comments on commit b3bd784

Please sign in to comment.