From b17894f7f16086c419ba8904de47ae6d5a15d370 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 24 Apr 2023 13:11:13 +0100 Subject: [PATCH] Try fix type error --- js/pis.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/pis.js b/js/pis.js index 8fa7a6f..282ab05 100644 --- a/js/pis.js +++ b/js/pis.js @@ -42,7 +42,9 @@ async function insertData(json) { } tableData += "" div.insertAdjacentHTML("beforeend", tableData) - document.getElementById('result-count').textContent = results + if (results > 1) { + document.getElementById('result-count').textContent = results.toString() + } } async function noData() {