Skip to content

Commit

Permalink
Deal with non-floating point values in additionalData
Browse files Browse the repository at this point in the history
  • Loading branch information
rubendel committed Feb 18, 2019
1 parent 98fde6b commit 11b250a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion properties.html
Expand Up @@ -91,7 +91,12 @@
} else {
tr.append("<td>" + knownTranslations[key] + "</td>");
}
tr.append("<td>" + additionalData[key].toFixed(2) + "</td>");
const value = additionalData[key];
if (value.toFixed == null) {
tr.append("<td>" + value + "</td>");
} else {
tr.append("<td>" + value.toFixed(2) + "</td>");
}
headerTr.after(tr);
}
};
Expand Down

0 comments on commit 11b250a

Please sign in to comment.