diff --git a/.eslintrc.json b/.eslintrc.json index b076ff36a..2f4c0a436 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -58,6 +58,16 @@ "devDependencies": true } ], - "import/no-unresolved": "off" + "import/no-unresolved": "off", + "import/extensions": [ + "error", + "ignorePackages", + { + "js": "never", + "jsx": "never", + "ts": "never", + "tsx": "never" + } + ] } } diff --git a/src/components/postView/container/postDisplayContainer.js b/src/components/postView/container/postDisplayContainer.js index dd6059df8..6a607d669 100644 --- a/src/components/postView/container/postDisplayContainer.js +++ b/src/components/postView/container/postDisplayContainer.js @@ -44,8 +44,8 @@ const PostDisplayContainer = ({ if (post) { console.log('Gettting reblogs inside postDisplayContainer'); const votes = get(post, 'active_votes', []); - setActiveVotes(votes) - setActiveVotesCount(votes.length) + setActiveVotes(votes); + setActiveVotesCount(votes.length); getPostReblogs(post).then((result) => { setReblogs(result || []); }); diff --git a/src/components/postView/view/postDisplayView.js b/src/components/postView/view/postDisplayView.js index b94eb8574..9385b11e5 100644 --- a/src/components/postView/view/postDisplayView.js +++ b/src/components/postView/view/postDisplayView.js @@ -56,7 +56,6 @@ const PostDisplayView = ({ } }, []); - // Component Functions const onRefresh = useCallback(() => { setRefreshing(true);