config will now be correctly red

This commit is contained in:
Jack 2020-06-27 23:50:02 +01:00
parent 46fdd6da66
commit c4294b2cab

View file

@ -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){