Skip to content

Commit

Permalink
Don't reset the page on browse if we got an error
Browse files Browse the repository at this point in the history
  • Loading branch information
nonproto committed Apr 30, 2024
1 parent d0a53c6 commit f53cf63
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ class BrowsePresenter(

fun retry() {
presenterScope.launchIO {
val initialLoading = _browseScreenState.value.page == 1
_browseScreenState.update { state ->
state.copy(initialLoading = true, error = null, page = 1)
state.copy(initialLoading = initialLoading, error = null)
}
when (browseScreenState.value.screenType) {
BrowseScreenType.Homepage -> getHomepage()
Expand Down

0 comments on commit f53cf63

Please sign in to comment.