fixup! fix(cmds): small improvements in user commands

Carlos Alexandro Becker created

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Change summary

internal/tui/components/dialogs/commands/commands.go | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)

Detailed changes

internal/tui/components/dialogs/commands/commands.go 🔗

@@ -168,17 +168,10 @@ func (c *commandDialogCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 }
 
 func (c *commandDialogCmp) next() CommandType {
-	switch c.selected {
-	case SystemCommands:
-		if len(c.userCommands) > 0 {
-			return UserCommands
-		}
-		fallthrough
-	case UserCommands:
-		fallthrough
-	default:
-		return SystemCommands
+	if c.selected == SystemCommands {
+		return UserCommands
 	}
+	return SystemCommands
 }
 
 func (c *commandDialogCmp) View() string {