aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cockpit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cockpit.js b/src/cockpit.js
index f648d63..746b5ac 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -243,7 +243,7 @@ async function updateStudentGraduation() {
async function initCockpit() {
initStudentSelection();
const params = new URLSearchParams(location.search);
- const userId = params.get("userToLoad");
+ const userId = Number(params.get("userToLoad"));
if (userId) {
student = await fetchStudent(userId);
await loadStudent(student);