Skip to content

Commit

Permalink
SMA-81: updated getSports
Browse files Browse the repository at this point in the history
  • Loading branch information
ivamach committed Apr 13, 2024
1 parent 8fff955 commit b4c95ae
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ function SportsButtonComponent({

useEffect(() => {
const fetchSports = async () => {
setSports(
(await SportControllerService.getSports({
page: 0,
size: 5,
})) as SportDTO[],
)
setSports((await SportControllerService.getSports(0, 5)) as SportDTO[])
}
fetchSports()
}, [])
Expand Down

0 comments on commit b4c95ae

Please sign in to comment.