From 700392d5d2bea6ef9856cd40c989fb5a3b98eff8 Mon Sep 17 00:00:00 2001 From: ryan1604 Date: Wed, 8 Nov 2023 00:39:13 +0800 Subject: [PATCH] Fix bug --- .../java/seedu/financialplanner/commands/BudgetCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/financialplanner/commands/BudgetCommand.java b/src/main/java/seedu/financialplanner/commands/BudgetCommand.java index f9f2febbde..ebede7f307 100644 --- a/src/main/java/seedu/financialplanner/commands/BudgetCommand.java +++ b/src/main/java/seedu/financialplanner/commands/BudgetCommand.java @@ -28,7 +28,7 @@ public BudgetCommand(RawCommand rawCommand) throws FinancialPlannerException { if (rawCommand.args.isEmpty()) { throw new FinancialPlannerException("Budget operation cannot be empty."); } - command = rawCommand.args.get(0); + command = String.join(" ", rawCommand.args).trim(); if (command.equals("delete") || command.equals("reset") || command.equals("view")) { return; }