diff --git a/src/components/Description/Description.js b/src/components/Description/Description.js index c2000125..f3bef20b 100644 --- a/src/components/Description/Description.js +++ b/src/components/Description/Description.js @@ -49,7 +49,7 @@ const Description = ({ candidatesListArr, getCandidate, onLoadMore }) => {
- +
diff --git a/src/components/Home/Home.js b/src/components/Home/Home.js index 0ca542bd..9d235d9d 100644 --- a/src/components/Home/Home.js +++ b/src/components/Home/Home.js @@ -32,7 +32,7 @@ const Home = ({ getCandidate }) => { const [tags, setTags] = useState([]); const [profiles, setProfiles] = useState([]); const [selectedTab, setSelectedTab] = useState(''); - const [countArr, setCountArr] = useState(0); + const [countArr, setCountArr] = useState(2); const [candidatesArray, setCandidatesArray] = useState([]); useEffect(() => { @@ -88,7 +88,7 @@ const Home = ({ getCandidate }) => { }); }, []); - const shorthandArray = candidatesArray.slice(countArr, 2); + const shorthandArray = candidatesArray.slice(0, countArr); const loadMore = (count) => { setCountArr((prev) => prev + count);