From 6e9668b7e71949bdad550654fbef93891dd62131 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 13 Feb 2022 15:17:52 +0530 Subject: [PATCH] minor bug fix --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index d109265..879ce7e 100644 --- a/index.html +++ b/index.html @@ -1616,7 +1616,7 @@ // <\/script> // ` // } - if (!isSubAdmin) { + if (!floGlobals.isSubAdmin) { bodyTemplate.querySelector('header button').remove() } const bodyHTML = createElement('div') @@ -1799,11 +1799,11 @@ } function updateScore() { const newScore = parseFloat(getRef('update_score_field').value) + scores[floGlobals.versionHistory.currentEntry] = newScore + document.querySelectorAll(`[data-vector-clock="${floGlobals.versionHistory.currentEntry}"] .content__score`).forEach(scoreElem => scoreElem.textContent = newScore) const mark = { [floGlobals.versionHistory.currentEntry]: newScore } - scores[floGlobals.versionHistory.currentEntry] = newScore - document.querySelectorAll(`[data-vector-clock="${floGlobals.versionHistory.currentEntry}"] .content__score`).forEach(scoreElem => scoreElem.textContent = newScore) floCloudAPI.markApplicationData(mark).then(res => { notify('Score updated', 'success') hidePopup()