Working form submission with query params

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2023-09-12 12:04:41 +02:00
parent cd63407d03
commit 20aaef67d7
3 changed files with 7 additions and 2 deletions

View file

@ -36,7 +36,7 @@ function App() {
} else {
setLoading(false)
}
}, [])
}, [location.search])
const calculatePages = (totalResults: number): number => {
return Math.round(totalResults / 10)