From 9cbcaecb92c6d0c4e737ccd712971b75abd84dc1 Mon Sep 17 00:00:00 2001 From: Stt_lens <82180165+SttApollo@users.noreply.github.com> Date: Mon, 4 Aug 2025 16:51:57 -0400 Subject: [PATCH] Update app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt Co-authored-by: Isira Seneviratne <31027858+Isira-Seneviratne@users.noreply.github.com> --- .../newpipe/ui/components/video/comment/CommentSection.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt b/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt index 0ad23b437..a774a0114 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt @@ -114,9 +114,8 @@ private fun CommentSection( } } is LoadState.Error -> { - val error = (comments.loadState.refresh as LoadState.Error).error val errorInfo = ErrorInfo( - throwable = error, + throwable = refresh.error, userAction = UserAction.REQUESTED_COMMENTS, request = "comments" )