From ef201409d93c9fe2087e1667805a3441ff42b218 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 3 Sep 2024 23:55:54 -0400 Subject: [PATCH] rename `setPage` to `setPageState` (match `pageState` name) --- client/homebrew/pages/vaultPage/vaultPage.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/homebrew/pages/vaultPage/vaultPage.jsx b/client/homebrew/pages/vaultPage/vaultPage.jsx index a2f86c4ae..0ce0af527 100644 --- a/client/homebrew/pages/vaultPage/vaultPage.jsx +++ b/client/homebrew/pages/vaultPage/vaultPage.jsx @@ -16,7 +16,7 @@ const ErrorIndex = require('../errorPage/errors/errorIndex.js'); const request = require('../../utils/request-middleware.js'); const VaultPage = (props) => { - const [pageState, setPage] = useState(parseInt(props.query.page) || 1); + const [pageState, setPageState] = useState(parseInt(props.query.page) || 1); //Response state const [brewCollection, setBrewCollection] = useState(null); @@ -39,7 +39,7 @@ const VaultPage = (props) => { const updateStateWithBrews = (brews, page) => { setBrewCollection(brews || null); - setPage(parseInt(page) || 1); + setPageState(parseInt(page) || 1); setSearching(false); }; @@ -110,7 +110,7 @@ const VaultPage = (props) => { const legacyValue = legacyRef.current.checked != false; if (update) { - setPage(page); + setPageState(page); } // Perform search with the latest input values, because state is not fast enough