From 58532ce26383848ebb12918eeffb88a8e67d21e7 Mon Sep 17 00:00:00 2001 From: Adams Pierre David <57180807+adamspd@users.noreply.github.com> Date: Fri, 9 Feb 2024 00:36:52 +0100 Subject: [PATCH] Optimized variable name in order to stay consistent --- appointment/static/js/appointments.js | 2 +- appointment/templates/appointment/appointments.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}