Skip to content

Commit

Permalink
Update Main.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
amelinaa committed Dec 24, 2024
1 parent 2a1c1ab commit e87f237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Main = () => {
const [anime, setAnime] = useState();
const [datalength, setTotalDataLength] = useState();
const handlePageChange = (page) => {
if (page > 0 && page <= totalPages) { // Проверяем, что страница в допустимом диапазоне
if (page > 0 && page <= totalPages) {
setCurrentPage(page);
console.log("Переход на страницу: " + page);
console.log("Текущая страница: " + currentPage);
Expand Down

0 comments on commit e87f237

Please sign in to comment.