diff --git a/src/app/(tabs)/author/index.tsx b/src/app/(tabs)/author/index.tsx index 7767637..a47ae9d 100644 --- a/src/app/(tabs)/author/index.tsx +++ b/src/app/(tabs)/author/index.tsx @@ -1,5 +1,5 @@ +import * as cheerio from 'cheerio'; import { useLocalSearchParams, router } from 'expo-router'; -import { decode } from 'html-entities'; import { useEffect, useState } from 'react'; import { ActivityIndicator, ScrollView, View, Text, Image } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; @@ -14,7 +14,6 @@ import { } from '../../../queries/authors'; import { Author, StoryPreview } from '../../../queries/types'; import globalStyles from '../../../styles/globalStyles'; -import * as cheerio from 'cheerio'; function AuthorScreen() { const [authorInfo, setAuthorInfo] = useState(); @@ -59,7 +58,7 @@ function AuthorScreen() { ) : ( router.back()} /> diff --git a/src/app/(tabs)/home/index.tsx b/src/app/(tabs)/home/index.tsx index b3c3e2b..2b26287 100644 --- a/src/app/(tabs)/home/index.tsx +++ b/src/app/(tabs)/home/index.tsx @@ -95,7 +95,6 @@ function HomeScreen() { {featuredStories.map(story => ( (); useEffect(() => { (async () => { - const temp = await fetchAllReactionsToStory(id); + const temp = await fetchAllReactionsToStory(storyId); if (temp != null) { setReactions(temp); return;