Skip to content

Commit 48f3386

Browse files
committed
fix: resolve comments
1 parent 4a65a76 commit 48f3386

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/Search/FilterDropdowns/UserSelectPopup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ function UserSelectPopup({value, closeOverlay, onChange, isSearchable}: UserSele
4949
const shouldFocusInputOnScreenFocus = canFocusInputOnScreenFocus();
5050
const [isSearchingForReports] = useOnyx(ONYXKEYS.IS_SEARCHING_FOR_REPORTS, {initWithStoredValues: false});
5151
const initialSelectedOptions = useMemo(() => {
52-
return value.reduce<OptionData[]>((acc, id) => {
52+
return value.reduce<OptionData[]>((options, id) => {
5353
const participant = personalDetails?.[id];
5454
if (!participant) {
55-
return acc;
55+
return options;
5656
}
5757

5858
const optionData = {
@@ -61,10 +61,10 @@ function UserSelectPopup({value, closeOverlay, onChange, isSearchable}: UserSele
6161
};
6262

6363
if (optionData) {
64-
acc.push(optionData as OptionData);
64+
options.push(optionData as OptionData);
6565
}
6666

67-
return acc;
67+
return options;
6868
}, []);
6969
}, [value, personalDetails]);
7070

0 commit comments

Comments
 (0)