mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 11:26:13 +08:00
unnecessary loading state changes
This commit is contained in:
parent
59fbd88c9c
commit
5f482cfc01
1 changed files with 0 additions and 3 deletions
|
|
@ -152,7 +152,6 @@ export async function getDataAndInit(): Promise<boolean> {
|
|||
}
|
||||
if (!UpdateConfig.localStorageConfig && snapshot.config) {
|
||||
console.log("no local config, applying db");
|
||||
AccountButton.loading(false);
|
||||
UpdateConfig.apply(snapshot.config);
|
||||
UpdateConfig.saveFullConfigToLocalStorage(true);
|
||||
} else if (snapshot.config !== undefined) {
|
||||
|
|
@ -193,10 +192,8 @@ export async function getDataAndInit(): Promise<boolean> {
|
|||
});
|
||||
if (configsDifferent) {
|
||||
console.log("configs are different, applying config from db");
|
||||
AccountButton.loading(false);
|
||||
UpdateConfig.apply(snapshot.config);
|
||||
UpdateConfig.saveFullConfigToLocalStorage(true);
|
||||
AccountButton.loading(true);
|
||||
}
|
||||
}
|
||||
AccountButton.loading(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue