Skip to content

Commit 7a9fe3f

Browse files
committed
Changes by DELL: Update switching of panels
1 parent d910ecd commit 7a9fe3f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/seedu/address/ui/MainWindow.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ private void switchTabByErrorCommandText(String commandText) {
230230
|| commandText.contains("e/");
231231
boolean isEvents = commandText.contains("g/");
232232

233-
if (isPersons) {
234-
displayPanel.showContacts();
233+
if (isEvents) {
234+
displayPanel.showEvents();
235235
} else if (isModules) {
236236
displayPanel.showModules();
237-
} else if (isEvents) {
238-
displayPanel.showEvents();
237+
} else if (isPersons) {
238+
displayPanel.showContacts();
239239
} else {
240240
logger.info("No switching of tabs");
241241
}

0 commit comments

Comments
 (0)