UWCodeForce / student-net

https://uwcodeforce.ca
2 stars 11 forks source link

Job API should return an empty array when no jobs found #66

Closed xTrig closed 2 years ago

xTrig commented 2 years ago

`pages/jobs.js (25:28) @ Jobs

23 | const indexOfLastPost = currentPage * postsPerPage; 24 | const indexOfFirstPost = indexOfLastPost - postsPerPage;

25 | const currentPosts = posts.slice(indexOfFirstPost, indexOfLastPost); | ^ 26 | 27 | const paginate = (pageNumber) => setCurrentPage(pageNumber); 28 | `