about summary refs log tree commit diff
path: root/src/view/com/profile/ProfileFollowers.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/profile/ProfileFollowers.tsx')
-rw-r--r--src/view/com/profile/ProfileFollowers.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx
index 7e41b1314..00ea48ed6 100644
--- a/src/view/com/profile/ProfileFollowers.tsx
+++ b/src/view/com/profile/ProfileFollowers.tsx
@@ -10,6 +10,7 @@ import {ErrorMessage} from '../util/error/ErrorMessage'
 import {ProfileCardWithFollowBtn} from './ProfileCard'
 import {useStores} from 'state/index'
 import {usePalette} from 'lib/hooks/usePalette'
+import {logger} from '#/logger'
 
 export const ProfileFollowers = observer(function ProfileFollowers({
   name,
@@ -27,16 +28,16 @@ export const ProfileFollowers = observer(function ProfileFollowers({
     view
       .loadMore()
       .catch(err =>
-        store.log.error('Failed to fetch user followers', {error: err}),
+        logger.error('Failed to fetch user followers', {error: err}),
       )
-  }, [view, store.log])
+  }, [view])
 
   const onRefresh = () => {
     view.refresh()
   }
   const onEndReached = () => {
     view.loadMore().catch(err =>
-      view?.rootStore.log.error('Failed to load more followers', {
+      logger.error('Failed to load more followers', {
         error: err,
       }),
     )