Skip to content

Commit

Permalink
Update clear command execution to default to person view
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-ny committed Apr 2, 2024
1 parent f1dca1a commit 6e4437e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class ClearCommand extends Command {
public CommandResult execute(Model model) {
requireNonNull(model);
model.setAddressBook(new AddressBook());
model.setToPersonTab();
return new CommandResult(MESSAGE_SUCCESS);
}
}

0 comments on commit 6e4437e

Please sign in to comment.