mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 14:19:40 +08:00
checking if local config is falsy instead of only null
This commit is contained in:
parent
fd1c953ace
commit
de9da79837
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ export async function getDataAndInit(): Promise<boolean> {
|
|||
true
|
||||
);
|
||||
}
|
||||
if (UpdateConfig.localStorageConfig === null && snapshot.config) {
|
||||
if (!UpdateConfig.localStorageConfig && snapshot.config) {
|
||||
console.log("no local config, applying db");
|
||||
AccountButton.loading(false);
|
||||
UpdateConfig.apply(snapshot.config);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue