Revert "Pass correct variable to EmptyList"

This is wrong and causes the saved posts message to be shown on both screens.

This reverts commit d93910ba5a.
This commit is contained in:
Harsh Shandilya 2020-10-19 00:26:55 +05:30
parent 600c93ed0f
commit 5782ae9438
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -78,7 +78,7 @@ fun LobstersApp(
if (saved && savedPosts.value.isEmpty()) {
EmptyList(saved)
} else if (!saved && posts.value.isEmpty()) {
EmptyList(!saved)
EmptyList(saved)
} else {
LobsterList(
showSaved.value,