diff --git a/assets/js/pages/booking.js b/assets/js/pages/booking.js index ca1947d800..ef5d626001 100644 --- a/assets/js/pages/booking.js +++ b/assets/js/pages/booking.js @@ -650,9 +650,10 @@ App.Pages.Booking = (function () { $displayBookingSelection.text(`${lang('service')} │ ${lang('provider')}`); // Notice: "│" is a custom ASCII char + const serviceOptionText = $selectService.find('option:selected').text(); + const providerOptionText = $selectProvider.find('option:selected').text(); + if (serviceId && providerId) { - const serviceOptionText = $selectService.find('option:selected').text(); - const providerOptionText = $selectProvider.find('option:selected').text(); $displayBookingSelection.text(`${serviceOptionText} │ ${providerOptionText}`); }