mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-25 07:17:23 +08:00
unnecessary settings update and test restart
the website will be in the loading state at this point
This commit is contained in:
parent
de9da79837
commit
7adfc2ae2b
1 changed files with 0 additions and 10 deletions
|
|
@ -154,11 +154,7 @@ export async function getDataAndInit(): Promise<boolean> {
|
|||
console.log("no local config, applying db");
|
||||
AccountButton.loading(false);
|
||||
UpdateConfig.apply(snapshot.config);
|
||||
Settings.update();
|
||||
UpdateConfig.saveFullConfigToLocalStorage(true);
|
||||
TestLogic.restart({
|
||||
nosave: true,
|
||||
});
|
||||
} else if (snapshot.config !== undefined) {
|
||||
//loading db config, keep for now
|
||||
let configsDifferent = false;
|
||||
|
|
@ -199,13 +195,7 @@ export async function getDataAndInit(): Promise<boolean> {
|
|||
console.log("configs are different, applying config from db");
|
||||
AccountButton.loading(false);
|
||||
UpdateConfig.apply(snapshot.config);
|
||||
Settings.update();
|
||||
UpdateConfig.saveFullConfigToLocalStorage(true);
|
||||
if (ActivePage.get() === "test") {
|
||||
TestLogic.restart({
|
||||
nosave: true,
|
||||
});
|
||||
}
|
||||
AccountButton.loading(true);
|
||||
DB.saveConfig(Config).then(() => {
|
||||
AccountButton.loading(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue