Skip to content

Commit 2845143

Browse files
Added a comment for the searchValue check
1 parent 3a3bbd2 commit 2845143

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libs/OptionsListUtils.js

+2
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ function getHeaderMessage(hasSelectableOptions, hasUserToInvite, searchValue, ma
719719
return translate(preferredLocale, 'messages.noPhoneNumber');
720720
}
721721

722+
// Without a search value, it would be very confusing to see a search validation message.
723+
// Therefore, this skips the validation when there is no search value.
722724
if (searchValue && !hasSelectableOptions && !hasUserToInvite) {
723725
if (/^\d+$/.test(searchValue)) {
724726
return translate(preferredLocale, 'messages.noPhoneNumber');

0 commit comments

Comments
 (0)