Skip to content

Commit

Permalink
fixed react compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Shar-ma committed May 27, 2021
1 parent 6d24126 commit 97acd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Editor/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Editor() {

useEffect(() => {
if(currentPageNo > pageCount) setCurrentPageNo(prev => prev-1);
}, [pageCount])
}, [pageCount, currentPageNo])

useEffect(() => {
window.scrollTo(0, 0);
Expand Down

0 comments on commit 97acd90

Please sign in to comment.