forked from external-repos/LifeTrinket
reload window
This commit is contained in:
@@ -48,6 +48,7 @@ export const GlobalSettingsProvider = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (savedGameSettings && JSON.parse(savedGameSettings).gridAreas) {
|
if (savedGameSettings && JSON.parse(savedGameSettings).gridAreas) {
|
||||||
removeLocalStorage();
|
removeLocalStorage();
|
||||||
|
window.location.reload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ export const GlobalSettingsProvider = ({
|
|||||||
|
|
||||||
if (!parsedInitialGameSettings.success) {
|
if (!parsedInitialGameSettings.success) {
|
||||||
removeLocalStorage();
|
removeLocalStorage();
|
||||||
|
window.location.reload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user