Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yyutong committed Oct 14, 2020
1 parent 1fb550b commit 50b47bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public double getRemainingBudget() {

public List<Category> getCategoryLabels(){
List<Category> categories = new ArrayList<>();
for(int i = 0; i < internalList.size() -1; i++) {
for(int i = 0; i < internalList.size(); i++) {
Expense current = internalList.get(i);
Category currentCategory = current.getCategory();
if(!categories.contains(currentCategory)){
Expand Down

0 comments on commit 50b47bd

Please sign in to comment.