diff --git a/appointment/static/js/appointments.js b/appointment/static/js/appointments.js index c21d285..4c9dfdc 100644 --- a/appointment/static/js/appointments.js +++ b/appointment/static/js/appointments.js @@ -197,7 +197,7 @@ function getAvailableSlots(selectedDate, staffId = null) { // Check if staffId is 'none', null, or undefined and display an error message if (staffId === 'none' || staffId === null || staffId === undefined) { console.log('No staff ID provided, displaying error message.'); - const errorMessage = $('

'+ noStaffMemberSelected + '

'); + const errorMessage = $('

'+ noStaffMemberSelectedTxt + '

'); errorMessageContainer.append(errorMessage); // Optionally disable the submit button here $('.btn-submit-appointment').attr('disabled', 'disabled'); diff --git a/appointment/templates/appointment/appointments.html b/appointment/templates/appointment/appointments.html index 266801d..e19b2dc 100644 --- a/appointment/templates/appointment/appointments.html +++ b/appointment/templates/appointment/appointments.html @@ -111,7 +111,7 @@

{{ service.name }}