From 5b387b0c50277e1cbfa9389e42a12f06b369e4a4 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 15 Jul 2024 16:11:52 +0200 Subject: [PATCH] Another fix related to booking selection --- assets/js/pages/booking.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/pages/booking.js b/assets/js/pages/booking.js index ca1947d8..ef5d6260 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}`); }