From a6d18f90bba390490b3bf7a3a7cfc7e2920360d2 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 26 Jan 2024 14:07:51 +0000 Subject: [PATCH] Fix typo Signed-off-by: Marcus Noble --- src/script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/script.js b/src/script.js index 92f6578..85e3173 100644 --- a/src/script.js +++ b/src/script.js @@ -9,7 +9,7 @@ const rawResults = document.querySelector("#rawResults"); function find() { let user = gh.value.toLowerCase(); if (user != "") { - statusUpdate(`Fetching devstat score for '${user}'`, "info"); + statusUpdate(`Fetching devstats score for '${user}'`, "info"); rawResultsWrapper.classList.add('hidden'); fetch("https://devstats.cncf.io/api/v1", { method: "POST", @@ -26,15 +26,15 @@ function find() { statusUpdate("", "info"); let score = data.number[0]; if (score) { - result.innerHTML = score; + result.innerHTML = score; rawResults.innerText = JSON.stringify(data, "", 2) rawResultsWrapper.classList.remove('hidden'); } else { - statusUpdate(`Failed to get devstat score for '${user}'`, "error"); + statusUpdate(`Failed to get devstats score for '${user}'`, "error"); } }) .catch(err => { - statusUpdate(`Failed to get devstat score for '${user}'`, "error"); + statusUpdate(`Failed to get devstats score for '${user}'`, "error"); console.log(err); }); } @@ -52,4 +52,4 @@ gh.onkeypress = function(event) { } } -btn.onclick = find; \ No newline at end of file +btn.onclick = find;