From 300ff3c2a7654c61c6f3070f0fab4ba5fe898faa Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 8 Mar 2022 17:01:25 +0100 Subject: [PATCH] Only show the any-provider option if there are more than one providers --- assets/js/frontend_book.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/frontend_book.js b/assets/js/frontend_book.js index 410e46de..481afc98 100644 --- a/assets/js/frontend_book.js +++ b/assets/js/frontend_book.js @@ -232,7 +232,7 @@ window.FrontendBook = window.FrontendBook || {}; }); // Add the "Any Provider" entry. - if ($('#select-provider option').length >= 1 && GlobalVariables.displayAnyProvider === '1') { + if ($('#select-provider option').length > 1 && GlobalVariables.displayAnyProvider === '1') { $('#select-provider').prepend(new Option('- ' + EALang.any_provider + ' -', 'any-provider', true, true)); }