diff --git a/src/app/dashboard/category-month.component.html b/src/app/dashboard/category-month.component.html
index a6ccc84..ac5ba47 100644
--- a/src/app/dashboard/category-month.component.html
+++ b/src/app/dashboard/category-month.component.html
@@ -22,7 +22,7 @@
-
6 && disableCategoryButton1 == false" class="divider text-center">
+ categoryLimit1 && disableCategoryButton1 == false" class="divider text-center">
@@ -53,7 +53,7 @@
-
6 && disableCategoryButtonFirst == false" class="divider text-center">
+ categoryLimit2 && disableCategoryButtonFirst == false" class="divider text-center">
@@ -84,7 +84,7 @@
-
6 && disableCategoryButtonFirst == false" class="divider text-center">
+ categoryLimit3 && disableCategoryButtonFirst == false" class="divider text-center">
@@ -115,7 +115,7 @@
-
6 && disableCategoryButtonFirst == false" class="divider text-center">
+ 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 40fbbdb..1e20a3e 100644
--- a/src/app/dashboard/category-month.component.ts
+++ b/src/app/dashboard/category-month.component.ts
@@ -18,10 +18,10 @@ export class CategoryMonthComponent implements OnInit {
first: 0,
};
- weekList1 = {};
- weekList2 = {};
- weekList3 = {};
- weekList4 = {};
+ weekList1 = [];
+ weekList2 = [];
+ weekList3 = [];
+ weekList4 = [];
categoryList: number[] = [];
dayList: any[] = [];
@@ -32,7 +32,7 @@ export class CategoryMonthComponent implements OnInit {
myWeek4: any;
categoryIdList: number[] = [];
categoryNameList: string[] = [];
- categoryLimit1: number = 6;
+ categoryLimit1: number = 2;
categoryLimit2: number = 6;
categoryLimit3: number = 6;
categoryLimit4: number = 6;
diff --git a/src/app/dashboard/dashboard-customer.component.html b/src/app/dashboard/dashboard-customer.component.html
index 46310d0..e8019a4 100644
--- a/src/app/dashboard/dashboard-customer.component.html
+++ b/src/app/dashboard/dashboard-customer.component.html
@@ -94,7 +94,7 @@
{{ sectorPurchases[i] || 'N/A' }}
- 10 && disableSectorButton == false" class="divider text-center">
+ sectorLimit && disableSectorButton == false" class="divider text-center">