Skip to content

Commit

Permalink
eh, I like this way better
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Jul 31, 2024
1 parent 883ab44 commit 5bcb383
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ export function useCommandTextString(

const fullParams = { ...params, t }

if (command == null) {
return { commandText: '' }
}

switch (command.commandType) {
switch (command?.commandType) {
case 'touchTip':
case 'home':
case 'savePosition':
Expand Down Expand Up @@ -220,6 +216,7 @@ export function useCommandTextString(
commandText: utils.getCustomCommandText({ ...fullParams, command }),
}

case undefined:
case null:
return { commandText: '' }

Expand Down

0 comments on commit 5bcb383

Please sign in to comment.