Fixed any-provider use case in booking page.
This commit is contained in:
parent
cf581e08e6
commit
c99694b520
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
if (response.length > 0) {
|
||||
var providerId = $('#select-provider').val();
|
||||
|
||||
if (providerId === 'any-provider') {
|
||||
providerId = GlobalVariables.availableProviders[0].id; // Use first available provider.
|
||||
}
|
||||
|
||||
var provider = GlobalVariables.availableProviders.filter(function(availableProvider) {
|
||||
return providerId == availableProvider.id;
|
||||
}).shift();
|
||||
|
|
Loading…
Reference in a new issue