diff --git a/src/components/postCard/container/postCardContainer.js b/src/components/postCard/container/postCardContainer.js index abf135bd1..096b37823 100644 --- a/src/components/postCard/container/postCardContainer.js +++ b/src/components/postCard/container/postCardContainer.js @@ -21,7 +21,7 @@ import { default as ROUTES } from '../../../constants/routeNames'; */ const PostCardContainer = ({ - isRefresh, + // isRefresh, navigation, currentAccount, content, @@ -32,14 +32,15 @@ const PostCardContainer = ({ const [reblogs, setReblogs] = useState([]); const [_content, setContent] = useState(content); - useEffect(() => { - if (isRefresh) { - _fetchPost(); - } - }, [isRefresh]); + // useEffect(() => { + // if (isRefresh) { + // _fetchPost(); + // } + // }, [isRefresh]); useEffect(() => { let isCancelled = false; + const fetchData = async (val) => { try { const dd = await getPostReblogs(val); diff --git a/src/utils/postParser.js b/src/utils/postParser.js index 06eaefe3b..eeb57f090 100644 --- a/src/utils/postParser.js +++ b/src/utils/postParser.js @@ -72,7 +72,6 @@ export const parseComments = async (comments) => { }); }; - export const isVoted = async (activeVotes, currentUserName) => { if (!currentUserName) { return false;