diff --git a/src/components/BestProductList.js b/src/components/BestProductList.js index 316c6c7cb..fdc58b6ee 100644 --- a/src/components/BestProductList.js +++ b/src/components/BestProductList.js @@ -15,7 +15,7 @@ const getPageSize = () => { }; function BestProductList() { - const [orderBy, setOrderBy] = useState('favorite'); + const orderBy = 'favorite'; const [products, setProducts] = useState([]); const [pageSize, setPageSize] = useState(getPageSize());