mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
using db result filters when none are found
This commit is contained in:
parent
f91b4e86f6
commit
5fb379b09a
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue