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 4575640 commit 9510181Copy full SHA for 9510181
src/builtins.ts
@@ -17,8 +17,8 @@ const groupCommandsByCategory = (commands: CommandConfig[]) => {
17
}, {})
18
}
19
20
-const capitalize = (str: string | undefined) => {
21
- return str ? `${str.charAt(0).toUpperCase()}${str.slice(1)}` : str
+const capitalize = (str: string) => {
+ return `${str.charAt(0).toUpperCase()}${str.slice(1)}`
22
23
24
export const helpCommand = defineCommand(
@@ -86,7 +86,7 @@ export const helpCommand = defineCommand(
86
fields: [
87
{
88
name: 'Category',
89
- value: capitalize(cmd.config.category) ?? 'None',
+ value: capitalize(cmd.config.category ?? 'None'),
90
inline: true
91
},
92
0 commit comments