mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 17:27:32 +08:00
config will now be correctly red
This commit is contained in:
parent
46fdd6da66
commit
c4294b2cab
1 changed files with 2 additions and 2 deletions
|
|
@ -179,10 +179,10 @@ firebase.auth().onAuthStateChanged(function(user) {
|
|||
saveConfigToCookie();
|
||||
}else{
|
||||
let configsDifferent = false;
|
||||
Object.keys(cookieConfig).forEach(key => {
|
||||
Object.keys(config).forEach(key => {
|
||||
if(!configsDifferent){
|
||||
if(key !== 'resultFilters')
|
||||
if(cookieConfig[key] !== dbSnapshot.config[key]) configsDifferent = true;
|
||||
if(config[key] != dbSnapshot.config[key]) configsDifferent = true;
|
||||
}
|
||||
})
|
||||
if(configsDifferent){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue