using db result filters when none are found

This commit is contained in:
Jack 2020-08-21 01:41:57 +01:00
parent f91b4e86f6
commit 5fb379b09a

View file

@ -270,7 +270,11 @@ firebase.auth().onAuthStateChanged(function (user) {
config.resultFilters === null ||
config.resultFilters.difficulty === undefined
) {
config.resultFilters = defaultAccountFilters;
if (dbSnapshot.config.resultFilters == null) {
config.resultFilters = defaultAccountFilters;
} else {
config.resultFilters = dbSnapshot.config.resultFilters;
}
}
if ($(".pageLogin").hasClass("active")) {
changePage("account");