diff options
Diffstat (limited to 'src/view/com/profile/ProfileFollowers.tsx')
-rw-r--r-- | src/view/com/profile/ProfileFollowers.tsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx index beb9609b6..7e41b1314 100644 --- a/src/view/com/profile/ProfileFollowers.tsx +++ b/src/view/com/profile/ProfileFollowers.tsx @@ -26,18 +26,20 @@ export const ProfileFollowers = observer(function ProfileFollowers({ useEffect(() => { view .loadMore() - .catch(err => store.log.error('Failed to fetch user followers', err)) + .catch(err => + store.log.error('Failed to fetch user followers', {error: err}), + ) }, [view, store.log]) const onRefresh = () => { view.refresh() } const onEndReached = () => { - view - .loadMore() - .catch(err => - view?.rootStore.log.error('Failed to load more followers', err), - ) + view.loadMore().catch(err => + view?.rootStore.log.error('Failed to load more followers', { + error: err, + }), + ) } if (!view.hasLoaded) { |