Skip to content

Commit 68d78cb

Browse files
bye logs
1 parent f9bbb3d commit 68d78cb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

components/post-views.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ function ViewCount({ slug, prev }: { slug: string; prev: number }) {
1717

1818
useEffect(() => {
1919
// Fetch updated view count
20-
console.log('fetching views')
2120
async function fetchViews() {
2221
// Wait 1 second to view to be added to db
2322
await new Promise((resolve) => setTimeout(resolve, 1000))
2423
getPostViews({ slug }).then((count) => {
25-
console.log('fetched', count)
2624
if (count != null) setViews(count)
2725
})
2826
}

0 commit comments

Comments
 (0)