fix exlint stuff
Some checks failed
Deploy / deploy (push) Failing after 2m20s

This commit is contained in:
Lee 2024-10-02 10:40:10 +01:00
parent c949931621
commit 859df1dea3
2 changed files with 3 additions and 3 deletions

@ -137,9 +137,9 @@ export default function PlayerScores({ initialScoreData, initialSearch, player,
useEffect(() => { useEffect(() => {
const newUrl = getUrl(pageState.page); const newUrl = getUrl(pageState.page);
window.history.replaceState({ ...window.history.state, as: newUrl, url: newUrl }, "", newUrl); window.history.replaceState({ ...window.history.state, as: newUrl, url: newUrl }, "", newUrl);
}, [pageState, debouncedSearchTerm, player.id, isSearchActive]); }, [pageState, debouncedSearchTerm, player.id, isSearchActive, getUrl]);
/** /**k
* Handle scrolling to the top of the * Handle scrolling to the top of the
* scores when new scores are loaded. * scores when new scores are loaded.
*/ */

@ -49,7 +49,7 @@ export default function Settings() {
*/ */
useEffect(() => { useEffect(() => {
form.setValue("backgroundCover", settings?.backgroundCover || ""); form.setValue("backgroundCover", settings?.backgroundCover || "");
}, [settings]); }, [settings, form]);
return ( return (
<div className="flex flex-col gap-3"> <div className="flex flex-col gap-3">