Skip to content

Commit

Permalink
implement parseFloat for sc data
Browse files Browse the repository at this point in the history
  • Loading branch information
frknltrk committed Jul 20, 2023
1 parent 5f7370e commit 55ebf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ <h5>KAR</h5>
var desiValue = document.getElementById("desi").value;

// Find the matching shipping cost for the selected shipping company and desi value
var selectedShippingCost = shippingCosts[desiValue][selectedValue];
var selectedShippingCost = parseFloat(shippingCosts[desiValue][selectedValue].replace(',', '.'));
// Update the shipping input field with the calculated shipping cost
shipping.value = selectedShippingCost;

Expand Down

0 comments on commit 55ebf20

Please sign in to comment.