From 05e3e274561b1197f1ef42979e88eb8ea71ba639 Mon Sep 17 00:00:00 2001 From: takahirom Date: Wed, 11 Sep 2024 23:33:29 +0900 Subject: [PATCH] Use ordinal --- .../droidkaigi/confsched/favorites/section/FavoriteSheet.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature/favorites/src/commonMain/kotlin/io/github/droidkaigi/confsched/favorites/section/FavoriteSheet.kt b/feature/favorites/src/commonMain/kotlin/io/github/droidkaigi/confsched/favorites/section/FavoriteSheet.kt index a3784142a..c9bf7c2dd 100644 --- a/feature/favorites/src/commonMain/kotlin/io/github/droidkaigi/confsched/favorites/section/FavoriteSheet.kt +++ b/feature/favorites/src/commonMain/kotlin/io/github/droidkaigi/confsched/favorites/section/FavoriteSheet.kt @@ -71,7 +71,7 @@ sealed interface FavoritesSheetUiState { val startTimeString: String, val endTimeString: String, ) { - val key: String get() = "${day?.name}$startTimeString-$endTimeString" + val key: String get() = "${day?.ordinal}-$startTimeString-$endTimeString" } }