diff --git a/ImageBoardServerApp/Shared/Components/Comment.razor b/ImageBoardServerApp/Shared/Components/Comment.razor index af64e64..43beaa6 100644 --- a/ImageBoardServerApp/Shared/Components/Comment.razor +++ b/ImageBoardServerApp/Shared/Components/Comment.razor @@ -98,9 +98,9 @@ private ImageData image; private string role; - protected override async Task OnAfterRenderAsync(bool firstRender) + protected override async Task OnParametersSetAsync() { - await base.OnAfterRenderAsync(firstRender); + await base.OnParametersSetAsync(); var cauthStateProvder = (CustomAuthenticationStateProvider)authStateProvider; var user = await cauthStateProvder.GetAuthenticationStateAsync(); var usr = user.User; diff --git a/ImageBoardServerApp/Shared/Components/Post.razor b/ImageBoardServerApp/Shared/Components/Post.razor index 12ea8fe..e4f5e65 100644 --- a/ImageBoardServerApp/Shared/Components/Post.razor +++ b/ImageBoardServerApp/Shared/Components/Post.razor @@ -169,9 +169,10 @@ toggleText = opened ? "-" : "+"; } - protected override async Task OnAfterRenderAsync(bool firstRender) + + protected override async Task OnParametersSetAsync() { - await base.OnAfterRenderAsync(firstRender); + await base.OnParametersSetAsync(); value = TheManager.getBumpValue(post) + "v"; string boardTag = post.Board; var cauthStateProvder = (CustomAuthenticationStateProvider)authStateProvider; diff --git a/ImageBoardServerApp/Shared/NavMenu.razor b/ImageBoardServerApp/Shared/NavMenu.razor index cd5b10b..9e3be17 100644 --- a/ImageBoardServerApp/Shared/NavMenu.razor +++ b/ImageBoardServerApp/Shared/NavMenu.razor @@ -5,7 +5,7 @@