fixed resultfilter error

This commit is contained in:
Jack 2020-08-24 03:08:06 +01:00
parent d533bac903
commit ebfa7f4f25

View file

@ -269,7 +269,10 @@ firebase.auth().onAuthStateChanged(function (user) {
config.resultFilters === null ||
config.resultFilters.difficulty === undefined
) {
if (dbSnapshot.config.resultFilters == null) {
if (
dbSnapshot.config.resultFilters == null ||
dbSnapshot.config.resultFilters.difficulty === undefined
) {
config.resultFilters = defaultAccountFilters;
} else {
config.resultFilters = dbSnapshot.config.resultFilters;