Implement solution to data loss issue
This commit is contained in:
1 parent
02f86d41b2
commit
09e7fab141
4 files changed
+68
-54
No files matched your search
@@ -7,6 +7,7 @@ import MessageUiHandler from "./message-ui-handler";
|
||||
import { GameDataType } from "../system/game-data";
|
||||
import { OptionSelectConfig } from "./abstact-option-select-ui-handler";
|
||||
import { Tutorial, handleTutorial } from "../tutorial";
|
||||
import { updateUserInfo } from "../account";
|
||||
|
||||
export enum MenuOptions {
|
||||
GAME_SETTINGS,
|
||||
@@ -220,7 +221,7 @@ export default class MenuUiHandler extends MessageUiHandler {
|
||||
if (!res.ok)
|
||||
console.error(`Log out failed (${res.status}: ${res.statusText})`);
|
||||
Utils.setCookie(Utils.sessionIdKey, '');
|
||||
this.scene.reset(true);
|
||||
updateUserInfo().then(() => this.scene.reset(true));
|
||||
});
|
||||
};
|
||||
if (this.scene.currentBattle) {
|
||||
|
||||
Reference in new issue
Block a user