Skip to content

Commit

Permalink
Fix duplicate tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayushe committed Oct 28, 2019
1 parent a9e2b51 commit 74c1481
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/seedu/algobase/model/task/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ public boolean equals(Object other) {
}

Task otherTask = (Task) other;
return otherTask.getProblem().equals(getProblem())
&& otherTask.getIsSolved().equals(getIsSolved())
&& otherTask.getTargetDate().equals(getTargetDate());
return otherTask.getProblem().equals(getProblem());
}

@Override
Expand Down

0 comments on commit 74c1481

Please sign in to comment.