Skip to content

Commit

Permalink
fix(*): update lint for equals
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Jul 16, 2023
1 parent 7cd6591 commit eeff645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Article/RightColumn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const RightColumn = ({user, articles}) => {
const shuffleArray = (arr) => arr.sort(() => 0.5 - Math.random());
const uri = window.location.pathname;
const recentPosts = shuffleArray(articles)
.filter((article) => article._id != uri.split('/')[2])
.filter((article) => article._id !== uri.split('/')[2])
.slice(0, 5);
const history = useHistory();
const state = useContext(GlobalState);
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Articles/Articles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Articles = () => {
const currentPosts = mainPosts.slice(indexOfFirstPost, indexOfLastPost)
const shuffleArray = (arr) => arr.sort(() => 0.5 - Math.random());
const popularPosts = shuffleArray(mainPosts)
.filter((article) => article != currentPosts)
.filter((article) => article !== currentPosts)
.slice(0, 5);

const truncate = (str) => {
Expand Down

0 comments on commit eeff645

Please sign in to comment.