0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 00:03:21 +00:00

fix last page navigation

This commit is contained in:
Víctor Losada Hernández
2024-05-31 21:00:01 +02:00
parent afa0571382
commit 12de8c5221

View File

@@ -146,7 +146,7 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
console.log(`page is ${state.currentPage} and i move to ${state.currentPage}`);
onPageChange(state.currentPage);
}}
disabled={state.currentPage + 1 === state.totalPages}
disabled={state.currentPage >= state.totalPages}
>
<i className="fas fa-arrow-right"></i>
</button>