Kaynağa Gözat

Update analytics.js to reflect new bottle data structure.

Lee Morgan 5 yıl önce
ebeveyn
işleme
5b66dbba34

+ 0 - 3
views/dashboardPage/bundle.js

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