This commit is contained in:
Guillem George 2026-05-15 19:00:11 +02:00
parent 414aec97e5
commit 0fb4513b4b
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
// FIXME: File that provide utils function for the debug page
import $ from "jquery";
import jwt_decode from "jwt-decode";
import { createAlert } from "../../utils/notify";
import {authedAPIRequest} from "../../utils/auth"
export async function displayStudentProfile() {
const token = localStorage.getItem("token");
@ -10,7 +10,7 @@ export async function displayStudentProfile() {
const _uid = decoded.uid;
// You have to write a request to fetch your informations
const request_result = null;
// const request_result = authedAPIRequest(`/api/students/${_uid}`, {method: "GET"});
if (request_result === null) {
createAlert(