Display the any-provider option only if there are more than one providers available for selection

This commit is contained in:
Alex Tselegidis 2023-05-04 17:56:43 +02:00
parent 890e3ac4d9
commit 121571f517
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ App.Pages.Booking = (function () {
});
// Add the "Any Provider" entry.
if ($selectProvider.find('option').length >= 1 && vars('display_any_provider') === '1') {
if ($selectProvider.find('option').length > 1 && vars('display_any_provider') === '1') {
$selectProvider.prepend(new Option(lang('any_provider'), 'any-provider', true, true));
}