Skip to content

Commit

Permalink
fix: fix list reset after fetch (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadKhosravi authored Oct 14, 2024
1 parent 544e850 commit d3b4dcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fun DownloadablePoetsScreen(
modifier = Modifier.fillMaxWidth(),
textStyle = MaterialTheme.typography.bodyMedium,
)
if (fetchStatus == Status.LOADING) {
if (fetchStatus == Status.LOADING && poets.isEmpty()) {
LoadingIndicator()
} else if (fetchStatus == Status.FAILED) {
ServerFailure()
Expand Down

0 comments on commit d3b4dcb

Please sign in to comment.