diff --git a/anilist/src/commonMain/kotlin/dev/datlag/aniflow/anilist/state/DiscoverState.kt b/anilist/src/commonMain/kotlin/dev/datlag/aniflow/anilist/state/DiscoverState.kt index 8616244..c2fa1cf 100644 --- a/anilist/src/commonMain/kotlin/dev/datlag/aniflow/anilist/state/DiscoverState.kt +++ b/anilist/src/commonMain/kotlin/dev/datlag/aniflow/anilist/state/DiscoverState.kt @@ -44,16 +44,12 @@ sealed interface DiscoverState { ) }?.distinctBy { it.id } - if (mediumList.isNullOrEmpty()) { - Failure(response.exception) - } else { - Matching( - query = PageMediaQuery.Recommendation( - nsfw = nsfw, - collection = mediumList.toImmutableList() - ) + Matching( + query = PageMediaQuery.Recommendation( + nsfw = nsfw, + collection = mediumList.orEmpty().toImmutableList() ) - } + ) } } @@ -158,11 +154,11 @@ sealed interface DiscoverListType { companion object { val entries = persistentSetOf( - DiscoverListType.Recommendation, - DiscoverListType.Spring, - DiscoverListType.Summer, - DiscoverListType.Fall, - DiscoverListType.Winter + Recommendation, + Spring, + Summer, + Fall, + Winter ) } } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9670128..f2d78bd 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -app = "1.0.1" +app = "1.0.2" aboutlibraries = "11.2.0" activity = "1.9.0" ads = "23.0.0"