diff --git a/index.js b/index.js index c99175c..5180fd5 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ function addEventListeners() { const selectPricingPlan = document.getElementById("select-pricing-plan"); selectPricingPlan.addEventListener("change", async => { - selectedPricingIndex = selectPricingPlan.value; + currentPricingOptions.selectedPricingIndex = selectPricingPlan.value; refreshPricing(currentPricingOptions); }); diff --git a/javascript/pricing.js b/javascript/pricing.js index d14c445..6c8447f 100644 --- a/javascript/pricing.js +++ b/javascript/pricing.js @@ -67,5 +67,5 @@ async function refreshPricing({ } if (pricingPlan.per_km_pricing !== undefined) { price += await getGbfsPricePerKm(pricingPlan, currentDistance) } - document.getElementById("price").textContent = price + pricingPlan.currency; + document.getElementById("price").textContent = price + " " + pricingPlan.currency; } \ No newline at end of file