From ebfa7f4f2580e7822e285ae8f51855fe9b6e353f Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 24 Aug 2020 03:08:06 +0100 Subject: [PATCH] fixed resultfilter error --- public/js/account.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/account.js b/public/js/account.js index a071a49da..74f530343 100644 --- a/public/js/account.js +++ b/public/js/account.js @@ -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;