This commit is contained in:
parent
c949931621
commit
859df1dea3
@ -137,9 +137,9 @@ export default function PlayerScores({ initialScoreData, initialSearch, player,
|
||||
useEffect(() => {
|
||||
const newUrl = getUrl(pageState.page);
|
||||
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
|
||||
* scores when new scores are loaded.
|
||||
*/
|
||||
|
@ -49,7 +49,7 @@ export default function Settings() {
|
||||
*/
|
||||
useEffect(() => {
|
||||
form.setValue("backgroundCover", settings?.backgroundCover || "");
|
||||
}, [settings]);
|
||||
}, [settings, form]);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-3">
|
||||
|
Reference in New Issue
Block a user