mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-16 18:46:26 +08:00
made sure to catch errors when comparing configs
This commit is contained in:
parent
fdc83326ec
commit
a276fa2ed3
1 changed files with 7 additions and 2 deletions
|
@ -181,8 +181,13 @@ firebase.auth().onAuthStateChanged(function(user) {
|
|||
let configsDifferent = false;
|
||||
Object.keys(config).forEach(key => {
|
||||
if(!configsDifferent){
|
||||
if(key !== 'resultFilters')
|
||||
if(config[key] != dbSnapshot.config[key]) configsDifferent = true;
|
||||
try{
|
||||
if(key !== 'resultFilters'){
|
||||
if(config[key] != dbSnapshot.config[key]) configsDifferent = true;
|
||||
}
|
||||
}catch(e){
|
||||
configsDifferent = true;
|
||||
}
|
||||
}
|
||||
})
|
||||
if(configsDifferent){
|
||||
|
|
Loading…
Add table
Reference in a new issue