Skip to content

Commit

Permalink
Merge pull request #45535 from Expensify/jack-fix45445
Browse files Browse the repository at this point in the history
Disable the button when 0 selected

(cherry picked from commit ac10c53)
  • Loading branch information
luacmartins authored and OSBotify committed Jul 16, 2024
1 parent b774909 commit 274bfe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Search/SearchSelectedNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ function SearchSelectedNarrow({options, itemsLength}: SearchSelectedNarrowProps)
ref={buttonRef}
style={[styles.w100, styles.ph5]}
text={translate('workspace.common.selected', {selectedNumber: itemsLength})}
shouldShowRightIcon
isContentCentered
iconRight={Expensicons.DownArrow}
isDisabled={options.length === 0}
shouldShowRightIcon={options.length !== 0}
/>

<Modal
Expand Down

0 comments on commit 274bfe6

Please sign in to comment.