mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 20:08:18 +08:00
fixed resultfilter error
This commit is contained in:
parent
d533bac903
commit
ebfa7f4f25
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue