Skip to content

Commit

Permalink
Merge pull request #48 from CFSY/wish-ui
Browse files Browse the repository at this point in the history
fix add item success msg
  • Loading branch information
CFSY authored Oct 13, 2022
2 parents 20aa4ad + 60e207e commit b4d2cab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public CommandResult execute(Model model) throws CommandException {
}

itinerary.addItem(toAdd);
return new CommandResult(String.format(MESSAGE_SUCCESS, toAdd));
return new CommandResult(String.format(MESSAGE_SUCCESS, toAdd.getDescription()));
}

@Override
Expand Down

0 comments on commit b4d2cab

Please sign in to comment.