Skip to content

Commit

Permalink
[BUG]: Pagination Fixed (shyamtawli#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv8433 authored Jun 2, 2024
1 parent 96d4692 commit 78a81bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function App() {
<div className="w-full pl-5 pr-4 md:h-screen md:w-[77%] md:overflow-y-scroll md:py-7" ref={profilesRef}>
<Search onSearch={handleSearch} />
{profiles.length === 0 && searching ? <NoResultFound /> : renderProfiles()}
{profiles.length > 0 && (
{combinedData.length > 0 && (
<Pagination
currentPage={currentPage}
totalPages={Math.ceil((searching ? profiles.length : shuffledProfiles.length) / recordsPerPage)}
Expand Down

0 comments on commit 78a81bf

Please sign in to comment.