We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d910ecd commit 7a9fe3fCopy full SHA for 7a9fe3f
1 file changed
src/main/java/seedu/address/ui/MainWindow.java
@@ -230,12 +230,12 @@ private void switchTabByErrorCommandText(String commandText) {
230
|| commandText.contains("e/");
231
boolean isEvents = commandText.contains("g/");
232
233
- if (isPersons) {
234
- displayPanel.showContacts();
+ if (isEvents) {
+ displayPanel.showEvents();
235
} else if (isModules) {
236
displayPanel.showModules();
237
- } else if (isEvents) {
238
- displayPanel.showEvents();
+ } else if (isPersons) {
+ displayPanel.showContacts();
239
} else {
240
logger.info("No switching of tabs");
241
}
0 commit comments