From 60e207e668e899650a3f03cee250c497997740d7 Mon Sep 17 00:00:00 2001 From: Clement Foo Date: Wed, 12 Oct 2022 00:22:18 +0800 Subject: [PATCH] fix add item success msg --- src/main/java/seedu/waddle/logic/commands/AddItemCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/waddle/logic/commands/AddItemCommand.java b/src/main/java/seedu/waddle/logic/commands/AddItemCommand.java index f3dd9c68045..64f361c28a4 100644 --- a/src/main/java/seedu/waddle/logic/commands/AddItemCommand.java +++ b/src/main/java/seedu/waddle/logic/commands/AddItemCommand.java @@ -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