From cc6674f7ed8df16355049d8f9832634cdbd3e1b9 Mon Sep 17 00:00:00 2001 From: Stefan de Laat Date: Mon, 15 Jul 2024 01:38:59 +0200 Subject: [PATCH] Minor changes due to results of test --- MMM-JsonTable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MMM-JsonTable.js b/MMM-JsonTable.js index 9bc9ddd..9f8603b 100644 --- a/MMM-JsonTable.js +++ b/MMM-JsonTable.js @@ -95,15 +95,15 @@ Module.register("MMM-JsonTable", { let valueToDisplay = ""; let cellValue = ""; - if (value.constructor == Object) { + if (value.constructor === Object) { if ("value" in value) { - cellValue = value["value"]; + cellValue = value.value; } else { cellValue = ""; } if ("color" in value) { - cell.style.color = value["color"]; + cell.style.color = value.color; } } else { cellValue = value;