Ver código fonte

Update analytics.js to reflect new bottle data structure.

Lee Morgan 5 anos atrás
pai
commit
5b66dbba34

+ 0 - 3
views/dashboardPage/bundle.js

@@ -3140,9 +3140,6 @@ let analytics = {
         }
 
         let yaxis = `QUANTITY (${this.ingredient.unit.toUpperCase()})`;
-        if(this.ingredient.specialUnit === "bottle"){
-            yaxis = `QUANTITY (${this.ingredient.specialUnit.toUpperCase()})`
-        }
 
         const layout = {
             title: this.ingredient.name.toUpperCase(),

+ 0 - 3
views/dashboardPage/js/strands/analytics.js

@@ -152,9 +152,6 @@ let analytics = {
         }
 
         let yaxis = `QUANTITY (${this.ingredient.unit.toUpperCase()})`;
-        if(this.ingredient.specialUnit === "bottle"){
-            yaxis = `QUANTITY (${this.ingredient.specialUnit.toUpperCase()})`
-        }
 
         const layout = {
             title: this.ingredient.name.toUpperCase(),