This commit is contained in:
parent
c949931621
commit
859df1dea3
@ -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">
|
||||||
|
Reference in New Issue
Block a user