Skip to content

Commit

Permalink
Update src/main/java/seedu/financialplanner/commands/MarkGoalCommand.…
Browse files Browse the repository at this point in the history
…java

Co-authored-by: Neo Min Wei <[email protected]>
  • Loading branch information
hshiah and NeoMinWei authored Nov 1, 2023
1 parent 27418e4 commit 410558c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public MarkGoalCommand(RawCommand rawCommand) throws IllegalArgumentException {
public void execute() {
Goal goal = WishList.getInstance().list.get(index-1);
goal.markAsDone();
Ui.getInstance().showMessage("You have achieved " + goal + System.lineSeparator() +"Congratulations!");
Ui.getInstance().showMessage("You have achieved " + goal + System.lineSeparator() + "Congratulations!");
CashflowList.getInstance().addExpense(goal.getAmount(), ExpenseType.GOAL, 0, goal.getLabel());
}
}

0 comments on commit 410558c

Please sign in to comment.