Skip to content

Commit 3e71c07

Browse files
authored
Optimized variable name in order to stay consistent (#94)
1 parent 32232eb commit 3e71c07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appointment/static/js/appointments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function getAvailableSlots(selectedDate, staffId = null) {
197197
// Check if staffId is 'none', null, or undefined and display an error message
198198
if (staffId === 'none' || staffId === null || staffId === undefined) {
199199
console.log('No staff ID provided, displaying error message.');
200-
const errorMessage = $('<p class="djangoAppt_no-availability-text">'+ noStaffMemberSelected + '</p>');
200+
const errorMessage = $('<p class="djangoAppt_no-availability-text">'+ noStaffMemberSelectedTxt + '</p>');
201201
errorMessageContainer.append(errorMessage);
202202
// Optionally disable the submit button here
203203
$('.btn-submit-appointment').attr('disabled', 'disabled');

appointment/templates/appointment/appointments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h1 class="page-title">{{ service.name }}</h1>
111111
</script>
112112
<script>
113113
const requestNonAvailableSlotBtnTxt = "{% trans 'Request next available slot' %}";
114-
const noStaffMemberSelected = "{% trans 'No staff member selected.' %}"
114+
const noStaffMemberSelectedTxt = "{% trans 'No staff member selected.' %}"
115115
</script>
116116
<script src="{% static 'js/appointments.js' %}"></script>
117117
<script src="{% static 'js/js-utils.js' %}"></script>

0 commit comments

Comments
 (0)