Skip to content

Commit

Permalink
Fix to show cancel icon on grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniokrait committed Sep 6, 2024
1 parent 71c7728 commit 50b7f66
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import io.github.droidkaigi.confsched.model.TimetableAsset
import io.github.droidkaigi.confsched.model.TimetableCategory
import io.github.droidkaigi.confsched.model.TimetableItem
import io.github.droidkaigi.confsched.model.TimetableItem.Session
import io.github.droidkaigi.confsched.model.TimetableItem.Special
import io.github.droidkaigi.confsched.model.TimetableItemId
import io.github.droidkaigi.confsched.model.TimetableLanguage
import io.github.droidkaigi.confsched.model.TimetableRoom
Expand Down Expand Up @@ -226,7 +227,10 @@ fun TimetableGridItem(
},
)

val shouldShowError = timetableItem is Session && timetableItem.message != null
val shouldShowError = when (timetableItem) {
is Session -> timetableItem.message
is Special -> timetableItem.message
} != null

if (isShowingAllContent && (speakers.isNotEmpty() || shouldShowError)) {
Row(
Expand Down

0 comments on commit 50b7f66

Please sign in to comment.