Skip to content

Commit

Permalink
Fix a rounding issue with keg products
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorinair committed Mar 30, 2024
1 parent 2ca8ff1 commit 4ac8441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ function renderGraph() {
tooltipTr = tooltipTable.append("tr");
if (d.produce.kegType) {
tooltipTr.append("td").attr("class", "tooltipTdLeft").text("Value (" + d.produce.kegType + "):");
tooltipTr.append("td").attr("class", "tooltipTdRight").text(kegPrice)
tooltipTr.append("td").attr("class", "tooltipTdRight").text(Math.round(kegPrice))
.append("div").attr("class", "gold");
}
else {
Expand Down

0 comments on commit 4ac8441

Please sign in to comment.