From 73736ee0d2558b93d039d0445dbecb699edf3e5b Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 3 Jul 2020 02:59:57 +0100 Subject: [PATCH] made sure the config comparison is actually workign --- public/js/account.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/public/js/account.js b/public/js/account.js index 9e1662278..671cb22b2 100644 --- a/public/js/account.js +++ b/public/js/account.js @@ -215,10 +215,18 @@ firebase.auth().onAuthStateChanged(function (user) { if (!configsDifferent) { try { if (key !== "resultFilters") { - if (config[key] != dbSnapshot.config[key]) - configsDifferent = true; + if (Array.isArray(config[key])) { + config[key].forEach((arrval, index) => { + if (arrval != dbSnapshot.config[key][index]) + configsDifferent = true; + }); + } else { + if (config[key] != dbSnapshot.config[key]) + configsDifferent = true; + } } } catch (e) { + console.log(e); configsDifferent = true; } }