diff --git a/Client/Components/UserComponent.razor b/Client/Components/UserComponent.razor
index 7386d11..9c236cf 100644
--- a/Client/Components/UserComponent.razor
+++ b/Client/Components/UserComponent.razor
@@ -1,6 +1,23 @@
-
@user.DisplayName
+@inject FileService fileService
+
+
+

+
@user.DisplayName
+
@user.Settings["Jahrgang"] - @user.Settings["Fachrichtung"]
+
@code {
[Parameter]
public User user { get; set; }
+
+ private string profilePictureUrl = "";
+
+ protected override async Task OnInitializedAsync()
+ {
+ if(user.PhotoFileId != null)
+ {
+ File f = await fileService.GetFileAsync(user.PhotoFileId);
+ profilePictureUrl = f.Url;
+ }
+ }
}
\ No newline at end of file