From 96cbe87013b026527c8698acd747d79f8d8c1e03 Mon Sep 17 00:00:00 2001 From: piratefinn Date: Thu, 1 Mar 2018 17:07:25 +0000 Subject: [PATCH] removed unnecessary console logs and cleaned essential input --- src/app/dashboard/add-data.component.html | 6 +++--- src/app/dashboard/add-data.component.ts | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/app/dashboard/add-data.component.html b/src/app/dashboard/add-data.component.html index 2f079f5..dea50d2 100644 --- a/src/app/dashboard/add-data.component.html +++ b/src/app/dashboard/add-data.component.html @@ -25,12 +25,12 @@
- +
- +
- Choose if the purchase is deemed essential for budgeting purposes. + Tick if the purchase is deemed an essential purchase for budgeting purposes.
diff --git a/src/app/dashboard/add-data.component.ts b/src/app/dashboard/add-data.component.ts index 1f0f569..94a0274 100644 --- a/src/app/dashboard/add-data.component.ts +++ b/src/app/dashboard/add-data.component.ts @@ -32,7 +32,7 @@ export class AddDataComponent implements OnInit { amount: number; // Assumes Groceries is 1st category categoryId: number = 1; - essentialPurchase: any; + essentialPurchase = false; transactionAdditionType = 1; storeList = []; showAddStore = false; @@ -89,12 +89,9 @@ export class AddDataComponent implements OnInit { private setCategoryList(data: any) { let categoryIdList = Object.keys(data.ids).map(key => data.ids[key]); this.categoryNameList = Object.keys(data.names).map(key => data.names[key]); - console.log(categoryIdList); let halfLength = Math.floor(categoryIdList.length / 2); this.leftCategoryIdList = categoryIdList.splice(0, halfLength); - console.log(this.leftCategoryIdList); this.rightCategoryIdList = categoryIdList; - console.log(this.rightCategoryIdList); } getMinDate() {