diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index da25b1b75ed6..3268db4be641 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -1716,14 +1716,7 @@ function getUserToInviteOption({ const isInOptionToExclude = optionsToExclude.findIndex((optionToExclude) => 'login' in optionToExclude && optionToExclude.login === PhoneNumber.addSMSDomainIfPhoneNumber(searchValue).toLowerCase()) !== -1; - if ( - !searchValue || - isCurrentUserLogin || - isInSelectedOption || - (!isValidEmail && !isValidPhoneNumber) || - isInOptionToExclude || - excludeUnknownUsers - ) { + if (!searchValue || isCurrentUserLogin || isInSelectedOption || (!isValidEmail && !isValidPhoneNumber) || isInOptionToExclude || excludeUnknownUsers) { return null; }