Skip to content

Commit

Permalink
Minor changes due to results of test
Browse files Browse the repository at this point in the history
  • Loading branch information
SirStepheno committed Jul 14, 2024
1 parent c52fa43 commit cc6674f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MMM-JsonTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cc6674f

Please sign in to comment.