Skip to content

Commit

Permalink
General bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GitStudying committed Aug 2, 2023
1 parent 2668937 commit b7d8bad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,11 @@ <h2>Help and information</h2>
//document.getElementById("noprofit").innerHTML = "The noprofit plat price is: " + noprofit.toFixed(2);

document.getElementById("profit").innerHTML = "Total profit " + profit.toFixed(2);

document.getElementById("cheapestOption").innerHTML = "The cheapest option available here is: " + cheapest_plat + " at a price of: " + lowest_price.toFixed(2);

if (plat == "Cheapest")
{
document.getElementById("cheapestOption").innerHTML = "The cheapest option available here is: " + cheapest_plat + " at a price of: " + lowest_price.toFixed(2);
}
}

var cheapest_plat;
Expand Down Expand Up @@ -260,7 +263,6 @@ <h2>Help and information</h2>
// Clear error
errorEl.textContent = '';
resultsEl.classList.remove("error");
}
}

function checkInputs() {
Expand Down

0 comments on commit b7d8bad

Please sign in to comment.