diff --git a/lib/common/apifunctions/get_graph_data.dart b/lib/common/apifunctions/get_graph_data.dart index 71ae7d6..6cabf2a 100644 --- a/lib/common/apifunctions/get_graph_data.dart +++ b/lib/common/apifunctions/get_graph_data.dart @@ -50,7 +50,8 @@ class GraphData { for (int i = 0; i < labels.length; i++) { print(DateTime.parse(labels[i])); - timeSeriesSpendList.add(new TimeSeriesSpend(data[i], DateTime.parse(labels[i]))); + timeSeriesSpendList.add(new TimeSeriesSpend(i, DateTime(i))); +// timeSeriesSpendList.add(new TimeSeriesSpend(data[i], DateTime.parse(labels[i]))); } return [ diff --git a/lib/pages/receipt_page.dart b/lib/pages/receipt_page.dart index 1dd800a..878a624 100644 --- a/lib/pages/receipt_page.dart +++ b/lib/pages/receipt_page.dart @@ -28,7 +28,7 @@ class ReceiptPageState extends State { final TextEditingController _amountController = TextEditingController(); final TextEditingController _essentialController = TextEditingController(); final TextEditingController _recurringController = TextEditingController(); - final TextEditingController _categoryController = TextEditingController(); // TODO: fix this + final TextEditingController _categoryController = TextEditingController(); // TODO: fix this!! final TextEditingController _orgController = TextEditingController(); final OrganizationController _organizationController = OrganizationController(); List _categoryDropDownItems = List();