Skip to content

Commit

Permalink
fix: detekt warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamada-Ika committed Aug 10, 2024
1 parent 774b9b7 commit 5aea5d9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import io.github.droidkaigi.confsched.model.Timetable
import io.github.droidkaigi.confsched.model.TimetableItem
import io.github.droidkaigi.confsched.model.localSessionsRepository
import io.github.droidkaigi.confsched.ui.providePresenterDefaults
import kotlinx.collections.immutable.PersistentSet
import kotlinx.collections.immutable.toPersistentList
import kotlinx.collections.immutable.toPersistentSet
import kotlinx.coroutines.flow.Flow

sealed interface FavoritesScreenEvent {
Expand All @@ -48,7 +50,7 @@ fun favoritesScreenPresenter(
favoritesSheet(
favoriteSessions = favoriteSessions,
allFilterSelected = allFilterSelected,
selectedDayFilters = currentDayFilters,
selectedDayFilters = currentDayFilters.toPersistentSet(),
),
)

Expand Down Expand Up @@ -93,7 +95,7 @@ fun favoritesScreenPresenter(
private fun favoritesSheet(
favoriteSessions: Timetable,
allFilterSelected: Boolean,
selectedDayFilters: Set<DroidKaigi2024Day>,
selectedDayFilters: PersistentSet<DroidKaigi2024Day>,
): FavoritesSheetUiState {
val filteredSessions by rememberUpdatedState(
favoriteSessions
Expand Down

0 comments on commit 5aea5d9

Please sign in to comment.