Self hosted FLOSS fitness/workout, nutrition and weight tracker
fixed remaining bug in javascript
Noah Pinter439cd037d5d5
diff --git a/wger/nutrition/static/js/nutrition.js b/wger/nutrition/static/js/nutrition.jsindex ea6da7475..14ddeb75a 100644--- a/wger/nutrition/static/js/nutrition.js+++ b/wger/nutrition/static/js/nutrition.js@@ -33,7 +33,7 @@ function updateIngredientValue(url) {// Replace the nutritional values$('#value-energy').html(parseFloat(data.energy).toFixed(2));- $('#value-energy-kjoule').html(parseFloat(data.energy * 4184).toFixed(2));+ $('#value-energy-kjoule').html(parseFloat(data.energy * 4.184).toFixed(2));$('#value-protein').html(parseFloat(data.protein).toFixed(2));$('#value-carbohydrates').html(parseFloat(data.carbohydrates).toFixed(2));$('#value-carbohydrates-sugar').html(parseFloat(data.carbohydrates_sugar).toFixed(2));