Fix parsing issue resulting in wrong order sum being calculated when using the german localization
This commit is contained in:
parent
fb50140762
commit
a03fe6a9f4
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
||||||
// calculate & display sum
|
// calculate & display sum
|
||||||
|
|
||||||
let order_price_per_drink = parseFloat(document.getElementById("pricePerDrink").dataset.drinkPrice);
|
let order_price_per_drink = parseFloat(document.getElementById("pricePerDrink").dataset.drinkPrice.replace(",", "."));
|
||||||
|
|
||||||
function calculate_and_display_sum() {
|
function calculate_and_display_sum() {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue