aboutsummaryrefslogtreecommitdiff
path: root/cockpit
diff options
context:
space:
mode:
Diffstat (limited to 'cockpit')
-rw-r--r--cockpit/js/cockpit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cockpit/js/cockpit.js b/cockpit/js/cockpit.js
index f8ee8e9..7503f32 100644
--- a/cockpit/js/cockpit.js
+++ b/cockpit/js/cockpit.js
@@ -13,7 +13,7 @@ import {
import { fetchStudent, fetchStudents } from "../../js/student-ENV.js";
import {
isTeacher as getIsTeacher,
- getCurrentName,
+ getFirstAndLastname,
getUserId,
} from "../../js/utils-ENV.js";
import { initSelection } from "../../js/selection.js";
@@ -293,6 +293,6 @@ async function initCockpit() {
window.onload = function() {
isTeacher = getIsTeacher();
DEFAULT_STUDENT_ICON = document.getElementById("student-info-icon").src;
- [firstname, lastname] = getCurrentName();
+ [firstname, lastname] = getFirstAndLastname();
initCockpit();
}