diff --git a/src/system/game-data.ts b/src/system/game-data.ts index 3ba087fcc..f8fbc546d 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -521,8 +521,13 @@ export class GameData { await handleSessionData(response); }); - } else - await handleSessionData(atob(localStorage.getItem(`sessionData${slotId ? slotId : ''}`))); + } else { + const sessionData = localStorage.getItem(`sessionData${slotId ? slotId : ''}`); + if (sessionData) + await handleSessionData(atob(sessionData)); + else + return resolve(null); + } }); }