Skip to content

Commit

Permalink
fix idling resource
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Jun 28, 2024
1 parent f2ab7e2 commit 8076fa7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fun EventListScreen(
val events = eventListViewModel.eventList.collectAsLazyPagingItems()
when (events.loadState.refresh) {
is LoadState.Error -> {
EventListIdlingResourceSingleton.decrement()
// no-op
}
LoadState.Loading -> {
Box(
Expand Down Expand Up @@ -100,8 +100,8 @@ fun EventListScreen(
}
}
}
EventListIdlingResourceSingleton.decrement()
}
}
EventListIdlingResourceSingleton.decrement()
}
}

0 comments on commit 8076fa7

Please sign in to comment.