From 274bfe60b6a158bab6c284991c53d2fe5f08acab Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 16 Jul 2024 17:02:13 -0600 Subject: [PATCH] Merge pull request #45535 from Expensify/jack-fix45445 Disable the button when 0 selected (cherry picked from commit ac10c5335af6cc354a0b594f34f26189cfdb79dc) --- src/pages/Search/SearchSelectedNarrow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Search/SearchSelectedNarrow.tsx b/src/pages/Search/SearchSelectedNarrow.tsx index 2dc6ac311444..1cc34d6bf53a 100644 --- a/src/pages/Search/SearchSelectedNarrow.tsx +++ b/src/pages/Search/SearchSelectedNarrow.tsx @@ -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} />