reload window

This commit is contained in:
Viktor Rådberg
2023-12-27 21:39:50 +01:00
parent 23e18f8f41
commit 7f19214624

View File

@@ -48,6 +48,7 @@ export const GlobalSettingsProvider = ({
useEffect(() => {
if (savedGameSettings && JSON.parse(savedGameSettings).gridAreas) {
removeLocalStorage();
window.location.reload();
return;
}
@@ -57,6 +58,7 @@ export const GlobalSettingsProvider = ({
if (!parsedInitialGameSettings.success) {
removeLocalStorage();
window.location.reload();
return;
}