mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
not showing lb change if not qualified
This commit is contained in:
parent
7986e57036
commit
0eb3f73718
1 changed files with 2 additions and 2 deletions
|
@ -2117,7 +2117,7 @@ function showResult(difficultyFailed = false) {
|
|||
const glbMemory =
|
||||
dbSnapshot.lbMemory[config.mode + mode2].global;
|
||||
let dontShowGlobalDiff =
|
||||
glbMemory == null || glbMemory === -1 || glb === -1 ? true : false;
|
||||
glbMemory == null || glbMemory === -1 || glb.insertedAt === -1 ? true : false;
|
||||
let globalLbDiff = null;
|
||||
if (glb === null) {
|
||||
globalLbString = "global: not found";
|
||||
|
@ -2172,7 +2172,7 @@ function showResult(difficultyFailed = false) {
|
|||
const dlbMemory =
|
||||
dbSnapshot.lbMemory[config.mode + mode2].daily;
|
||||
let dontShowDailyDiff =
|
||||
dlbMemory == null || dlbMemory === -1 || dlb === -1 ? true : false;
|
||||
dlbMemory == null || dlbMemory === -1 || dlb.insertedAt === -1 ? true : false;
|
||||
let dailyLbDiff = null;
|
||||
if (dlb === null) {
|
||||
dailyLbString = "daily: not found";
|
||||
|
|
Loading…
Reference in a new issue