1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix pagination effect

This commit is contained in:
mihaisc 2020-09-23 11:57:05 +03:00
parent 88f9c47b8c
commit 44433cdb12
No known key found for this signature in database
GPG Key ID: BE522BB8C3A5E2E4

View File

@ -22,7 +22,7 @@ export default function Pagination({
}
useEffect(() => {
if (!totalPages || totalPages < 2) return null
if (!totalPages || totalPages < 2) return
const mq = window.matchMedia('(min-width: 600px)')
viewportChange(mq)