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() {