Skip to content

Commit d3c0f09

Browse files
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>
1 parent 75a1587 commit d3c0f09

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ private fun CommentSection(
114114
}
115115
}
116116
is LoadState.Error -> {
117-
val error = (comments.loadState.refresh as LoadState.Error).error
118117
val errorInfo = ErrorInfo(
119-
throwable = error,
118+
throwable = refresh.error,
120119
userAction = UserAction.REQUESTED_COMMENTS,
121120
request = "comments"
122121
)

0 commit comments

Comments
 (0)