From 33570c6bf447b586e2cf9532aab5cd20b0ff6a81 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 21 Sep 2020 17:48:18 +0100 Subject: [PATCH] not showing lb diff if new lb position is not qualified --- public/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index 5a7167ae3..c217f2ba6 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -2022,7 +2022,7 @@ function showResult(difficultyFailed = false) { const glbMemory = dbSnapshot.lbMemory[config.mode + mode2].global; let dontShowGlobalDiff = - glbMemory == null || glbMemory === -1 ? true : false; + glbMemory == null || glbMemory === -1 || glb === -1 ? true : false; let globalLbDiff = null; if (glb === null) { globalLbString = "global: not found"; @@ -2077,7 +2077,7 @@ function showResult(difficultyFailed = false) { const dlbMemory = dbSnapshot.lbMemory[config.mode + mode2].daily; let dontShowDailyDiff = - dlbMemory == null || dlbMemory === -1 ? true : false; + dlbMemory == null || dlbMemory === -1 || dlb === -1 ? true : false; let dailyLbDiff = null; if (dlb === null) { dailyLbString = "daily: not found";