mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-17 00:08:01 +00:00
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