Fix the profilepicture url issue (it wasn't sent to the db)
add a prototype of a more generic uploadfile function in uploads.js makes the distinction between a master cursus and a bachelor cursus in display
This commit is contained in:
@ -9,10 +9,10 @@ let request = await getRegisters(props.target);
|
||||
const cursus = await getcurriculum(request.curriculum);
|
||||
|
||||
function getPP(){
|
||||
if(request.profilePicture === null){
|
||||
if(request.profilePictureUrl === null){
|
||||
return "/Clyde.png"
|
||||
}
|
||||
return request.profilePicture;
|
||||
return request.profilePictureUrl;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user