Skip to content

Commit

Permalink
Remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Jan 26, 2024
1 parent 0990e66 commit 8161c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SelectionList/BaseSelectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function BaseSelectionList<TItem extends User | RadioItem>(
useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.CTRL_ENTER, onConfirm ?? selectFocusedOption, {
captureOnInputs: true,
shouldBubble: !flattenedSections.allOptions[focusedIndex],
isActive: !disableKeyboardShortcuts && !!onConfirm && isFocused,
isActive: !disableKeyboardShortcuts && isFocused,
});

return (
Expand Down

0 comments on commit 8161c06

Please sign in to comment.