mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
fixed langauge and funbox filters not getting selected
This commit is contained in:
parent
d9d4f0e604
commit
4bb4341343
1 changed files with 12 additions and 0 deletions
|
@ -377,6 +377,18 @@ function getAccountDataAndInit() {
|
|||
} catch (e) {
|
||||
config.resultFilters = defaultAccountFilters;
|
||||
}
|
||||
if (
|
||||
Object.keys(config.resultFilters.language).length !==
|
||||
Object.keys(defaultAccountFilters.language).length
|
||||
) {
|
||||
config.resultFilters.language = defaultAccountFilters.language;
|
||||
}
|
||||
if (
|
||||
Object.keys(config.resultFilters.funbox).length !==
|
||||
Object.keys(defaultAccountFilters.funbox).length
|
||||
) {
|
||||
config.resultFilters.funbox = defaultAccountFilters.funbox;
|
||||
}
|
||||
if ($(".pageLogin").hasClass("active")) {
|
||||
changePage("account");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue