From 55730a864291ab06d40aeeb818a8047e2555b7ef Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 19 Apr 2022 16:56:04 +0530 Subject: [PATCH] fixed scoring bug --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index aef5c67..f6b0c63 100644 --- a/index.html +++ b/index.html @@ -1549,7 +1549,7 @@ } function updateScore() { const newScore = parseFloat(getRef('update_score_field').value) - updateGenData(floGlobals.versionHistory.currentEntry, { score: newScore }) + updateGenData(floGlobals.versionHistory.currentEntry, { tag: newScore }) document.querySelectorAll(`[data-vector-clock="${floGlobals.versionHistory.currentEntry}"] .content__score`).forEach(scoreElem => scoreElem.textContent = newScore) document.querySelectorAll(`[data-vector-clock="${floGlobals.versionHistory.currentEntry}"] .content__score`).forEach(scoreElem => newScore > 0 ? scoreElem.parentNode.classList.add('score-button--filled') : scoreElem.parentNode.classList.remove('score-button--filled')) floCloudAPI.tagApplicationData(floGlobals.versionHistory.currentEntry, newScore).then(res => {