mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
made sure the config comparison is actually workign
This commit is contained in:
parent
20a3049177
commit
73736ee0d2
1 changed files with 10 additions and 2 deletions
|
@ -215,10 +215,18 @@ firebase.auth().onAuthStateChanged(function (user) {
|
|||
if (!configsDifferent) {
|
||||
try {
|
||||
if (key !== "resultFilters") {
|
||||
if (config[key] != dbSnapshot.config[key])
|
||||
configsDifferent = true;
|
||||
if (Array.isArray(config[key])) {
|
||||
config[key].forEach((arrval, index) => {
|
||||
if (arrval != dbSnapshot.config[key][index])
|
||||
configsDifferent = true;
|
||||
});
|
||||
} else {
|
||||
if (config[key] != dbSnapshot.config[key])
|
||||
configsDifferent = true;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
configsDifferent = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue