summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'extension/react-app/src/components')
-rw-r--r--extension/react-app/src/components/ComboBox.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 12cd91a2..c08c05de 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -439,9 +439,11 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
// Handle slash commands
dispatch(setTakenActionTrue(null));
setItems(
- availableSlashCommands?.filter((slashCommand) =>
- slashCommand.name.toLowerCase().startsWith(inputValue.toLowerCase())
- ) || []
+ availableSlashCommands?.filter((slashCommand) => {
+ const sc = slashCommand.name.toLowerCase();
+ const iv = inputValue.toLowerCase();
+ return sc.startsWith(iv) && sc !== iv;
+ }) || []
);
},
[