diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index bf312cd0..5f31c89c 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -120,6 +120,7 @@ export const ProfileScreen = withAuthRequired(
}, [uiState.showLoadingMoreFooter])
const renderItem = React.useCallback(
(item: any) => {
+ // if section is lists
if (uiState.selectedView === Sections.Lists) {
if (item === ProfileUiModel.LOADING_ITEM) {
return
@@ -144,6 +145,32 @@ export const ProfileScreen = withAuthRequired(
} else {
return
}
+ // if section is custom algorithms
+ } else if (uiState.selectedView === Sections.CustomAlgorithms) {
+ if (item === ProfileUiModel.LOADING_ITEM) {
+ return
+ } else if (item._reactKey === '__error__') {
+ return (
+
+
+
+ )
+ } else if (item === ProfileUiModel.EMPTY_ITEM) {
+ return (
+
+ )
+ } else if (item instanceof CustomFeedModel) {
+ return
+ }
+ // if section is posts or posts & replies
} else {
if (item === ProfileUiModel.END_ITEM) {
return - end of feed -
@@ -188,8 +215,6 @@ export const ProfileScreen = withAuthRequired(
return (
)
- } else if (item instanceof CustomFeedModel) {
- return
}
}
return