Skip to content

Commit

Permalink
recommended stories bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezryr committed Apr 16, 2024
1 parent 7de2046 commit 7b9de74
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/app/(tabs)/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,12 @@ function HomeScreen() {
setRecentlyViewed(recentStoryResponse);
})().finally(() => {
setLoading(false);
async () => {
const recommendedStoriesResponse = await fetchRecommendedStories(
recentlyViewed,
).catch(() => []);
setRecommendedStories(recommendedStoriesResponse);
};
});
}, [user]);

// useEffect(() => {
// (async () => {

// })
// }, [recentlyViewed])
useEffect(() => {}, []);

console.log(recommendedStories);
return (
<SafeAreaView
style={[globalStyles.container, { marginLeft: -8, marginRight: -32 }]}
Expand Down

0 comments on commit 7b9de74

Please sign in to comment.