diff --git a/package-lock.json b/package-lock.json
index 08af396..b6f020c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -538,7 +538,7 @@
"resolved": "https://registry.npmjs.org/@types/moment/-/moment-2.13.0.tgz",
"integrity": "sha1-YE69GJvDvDShVIaJQE5hoqSqyJY=",
"requires": {
- "moment": "2.19.2"
+ "moment": "2.21.0"
}
},
"@types/node": {
@@ -6246,9 +6246,9 @@
}
},
"moment": {
- "version": "2.19.2",
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.2.tgz",
- "integrity": "sha512-Rf6jiHPEfxp9+dlzxPTmRHbvoFXsh2L/U8hOupUMpnuecHQmI6cF6lUbJl3QqKPko1u6ujO+FxtcajLVfLpAtA=="
+ "version": "2.21.0",
+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz",
+ "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ=="
},
"move-concurrently": {
"version": "1.0.1",
@@ -6317,7 +6317,7 @@
"integrity": "sha1-MI+aSwv+1aFUwU9d6x2UcNIqvnE=",
"requires": {
"chartjs-color": "2.1.0",
- "moment": "2.19.2"
+ "moment": "2.21.0"
}
}
}
diff --git a/package.json b/package.json
index cd54535..6e51ec6 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,7 @@
"core-js": "2.5.1",
"http-server": "0.11.1",
"js-marker-clusterer": "1.0.0",
- "moment": "2.19.2",
+ "moment": "^2.21.0",
"ng2-charts": "1.6.0",
"ng2-validation-manager": "0.5.3",
"ngx-bootstrap": "2.0.0-beta.8",
diff --git a/src/app/dashboard/add-data.component.html b/src/app/dashboard/add-data.component.html
index dea50d2..a756040 100644
--- a/src/app/dashboard/add-data.component.html
+++ b/src/app/dashboard/add-data.component.html
@@ -33,30 +33,65 @@
Tick if the purchase is deemed an essential purchase for budgeting purposes.
+
+
-
- -
+
+ -
Essential Purchases
{{ ( weekEssential1.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }}
({{ (weekEssential1.value || 0 ) / weekListValueSum1 | percent:'1.0-0' }})
@@ -32,7 +32,7 @@
-
+
categoryLimit1 && disableCategoryButton1 == false" class="divider text-center">
@@ -51,8 +51,8 @@
-
- -
+
+ -
Essential Purchases
{{ ( weekEssential2.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }}
({{ (weekEssential2.value || 0 ) / weekListValueSum2 | percent:'1.0-0' }})
@@ -74,7 +74,7 @@
-
+
categoryLimit2 && disableCategoryButtonFirst == false" class="divider text-center">
@@ -93,8 +93,8 @@
-
- -
+
+ -
Essential Purchases
{{ ( weekEssential1.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }}
({{ (weekEssential3.value || 0 ) / weekListValueSum3 | percent:'1.0-0' }})
@@ -116,7 +116,7 @@
-
+
categoryLimit3 && disableCategoryButtonFirst == false" class="divider text-center">
@@ -135,8 +135,8 @@
-
- -
+
+ -
Essential Purchases
{{ ( weekEssential4.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }}
({{ (weekEssential4.value || 0 ) / weekListValueSum4 | percent:'1.0-0' }})
@@ -158,7 +158,7 @@
-
+
categoryLimit4 && disableCategoryButtonFirst == false" class="divider text-center">
diff --git a/src/app/dashboard/category-month.component.ts b/src/app/dashboard/category-month.component.ts
index 4c9fbc4..809e71f 100644
--- a/src/app/dashboard/category-month.component.ts
+++ b/src/app/dashboard/category-month.component.ts
@@ -94,7 +94,6 @@ export class CategoryMonthComponent implements OnInit {
this.weekList4 = prop(data.data.categories, this.myWeek4);
this.getMaxValue(this.weekList1, this.weekList2, this.weekList3, this.weekList4);
this.weekEssential1 = prop(data.data.essentials, this.myWeek1);
- console.log(this.weekEssential1);
this.weekEssential2 = prop(data.data.essentials, this.myWeek2);
this.weekEssential3 = prop(data.data.essentials, this.myWeek3);
this.weekEssential4 = prop(data.data.essentials, this.myWeek4);