correctly refreshes the screen

This commit is contained in:
Vitor Pamplona 2023-05-11 17:39:31 -04:00
parent 55aafffb37
commit 19a58bb669

View File

@ -66,13 +66,13 @@ fun FeedView(
when (state) {
is FeedState.Empty -> {
FeedEmpty {
refreshing = true
refresh()
}
}
is FeedState.FeedError -> {
FeedError(state.errorMessage) {
refreshing = true
refresh()
}
}