Skip to content

Commit

Permalink
Fix SearchRouterList perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicu committed Nov 25, 2024
1 parent 4808640 commit 30f4067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Search/SearchRouter/SearchRouterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function SearchRouterList(
accountID: details.accountID.toString(),
};
});
const currentUser = (filteredOptions.currentUserOption as SearchOption<PersonalDetails>).item;
const currentUser = filteredOptions.currentUserOption ? (filteredOptions.currentUserOption as SearchOption<PersonalDetails>).item : undefined;
if (currentUser) {
autocompleteOptions.push({
name: currentUser.displayName ?? Str.removeSMSDomain(currentUser.login ?? ''),
Expand Down

0 comments on commit 30f4067

Please sign in to comment.