Skip to content

Commit

Permalink
fix discover type change not taking affect
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed May 28, 2024
1 parent f77da75 commit 9c3d659
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ class DiscoverStateMachine(
_listType,
user.map { it?.id }.distinctUntilChanged()
) { l, u ->
if (u == null) {
DiscoverListType.Season.fromSeason(Clock.System.now().season)
if (l is DiscoverListType.Recommendation) {
if (u == null) {
DiscoverListType.Season.fromSeason(Clock.System.now().season)
} else {
l
}
} else {
l
}
Expand Down

0 comments on commit 9c3d659

Please sign in to comment.