Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zugzwang03 authored Oct 20, 2023
1 parent 95e2a2b commit e7e8c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ searchForm.addEventListener("submit", function (e) {

function searchStudentByName(apiData, searchQuery) {
return apiData.filter((student) =>
student.studentName.toLowerCase().includes(searchQuery)
student["Student Name"].toLowerCase().includes(searchQuery)
);
}

Expand All @@ -162,7 +162,7 @@ function displayResults(results) {
const totalCompletionCell = row.insertCell(6);

idCell.textContent = ind + 1;
nameCell.textContent = student.studentName;
nameCell.textContent = student["Student Name"];
statusCell.textContent = student["Enrolment Status"];
courseCompletedCell.textContent = student["# of Courses Completed"];
badgeCell.textContent = student["# of Skill Badges Completed"];
Expand Down

0 comments on commit e7e8c67

Please sign in to comment.