about summary refs log tree commit diff
path: root/src/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/view')
-rw-r--r--src/view/com/posts/Feed.tsx5
-rw-r--r--src/view/screens/Profile.tsx2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/view/com/posts/Feed.tsx b/src/view/com/posts/Feed.tsx
index 8c14b0810..037d71a13 100644
--- a/src/view/com/posts/Feed.tsx
+++ b/src/view/com/posts/Feed.tsx
@@ -3,11 +3,8 @@ import {observer} from 'mobx-react-lite'
 import {Text, View, FlatList} from 'react-native'
 import {FeedViewModel, FeedViewItemModel} from '../../../state/models/feed-view'
 import {FeedItem} from './FeedItem'
-import {useStores} from '../../../state'
 
 export const Feed = observer(function Feed({feed}: {feed: FeedViewModel}) {
-  const store = useStores()
-
   // TODO optimize renderItem or FeedItem, we're getting this notice from RN: -prf
   //   VirtualizedList: You have a large list that is slow to update - make sure your
   //   renderItem function renders components that follow React performance best practices
@@ -26,7 +23,7 @@ export const Feed = observer(function Feed({feed}: {feed: FeedViewModel}) {
       {feed.isLoading && !feed.isRefreshing && !feed.hasContent && (
         <Text>Loading...</Text>
       )}
-      {feed.hasError && <Text>{feed.errorStr}</Text>}
+      {feed.hasError && <Text>{feed.error}</Text>}
       {feed.hasContent && (
         <FlatList
           data={feed.feed.slice()}
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index 422e561df..9fe094af1 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -80,7 +80,7 @@ export const Profile = observer(({visible, params}: ScreenParams) => {
       } else if (profileUiState.feed.hasError) {
         items.push({
           _reactKey: '__error__',
-          error: profileUiState.feed.errorStr,
+          error: profileUiState.feed.error,
         })
         renderItem = (item: any) => (
           <View style={s.p5}>