From f51351e80d446fc058faf0ab91757ca4bdead0a5 Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Sat, 4 Nov 2023 13:42:36 -0500
Subject: Replace all logs with new logger

---
 src/view/com/post-thread/PostLikedBy.tsx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'src/view/com/post-thread/PostLikedBy.tsx')

diff --git a/src/view/com/post-thread/PostLikedBy.tsx b/src/view/com/post-thread/PostLikedBy.tsx
index d16e8d306..22ff035d0 100644
--- a/src/view/com/post-thread/PostLikedBy.tsx
+++ b/src/view/com/post-thread/PostLikedBy.tsx
@@ -7,6 +7,7 @@ import {ErrorMessage} from '../util/error/ErrorMessage'
 import {ProfileCardWithFollowBtn} from '../profile/ProfileCard'
 import {useStores} from 'state/index'
 import {usePalette} from 'lib/hooks/usePalette'
+import {logger} from '#/logger'
 
 export const PostLikedBy = observer(function PostLikedByImpl({
   uri,
@@ -20,8 +21,8 @@ export const PostLikedBy = observer(function PostLikedByImpl({
   useEffect(() => {
     view
       .loadMore()
-      .catch(err => store.log.error('Failed to fetch likes', {error: err}))
-  }, [view, store.log])
+      .catch(err => logger.error('Failed to fetch likes', {error: err}))
+  }, [view])
 
   const onRefresh = () => {
     view.refresh()
@@ -29,9 +30,7 @@ export const PostLikedBy = observer(function PostLikedByImpl({
   const onEndReached = () => {
     view
       .loadMore()
-      .catch(err =>
-        view?.rootStore.log.error('Failed to load more likes', {error: err}),
-      )
+      .catch(err => logger.error('Failed to load more likes', {error: err}))
   }
 
   if (!view.hasLoaded) {
-- 
cgit 1.4.1

