Skip to content

Commit 76611f2

Browse files
committed
[FIX/#322] NULL_DATE 사용
1 parent d9c6b6d commit 76611f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

feature/home/src/main/java/com/terning/feature/home/component/bottomsheet/HomeYearMonthPicker.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ internal fun HomeYearMonthPicker(
7070
val monthPickerState = rememberPickerState()
7171

7272
val startYearIndex =
73-
if (isYearNull) yearsList.lastIndex else yearsList.indexOf("${chosenYear ?: "-"}")
73+
if (isYearNull) yearsList.lastIndex else yearsList.indexOf("${chosenYear ?: NULL_DATE}")
7474
.takeIf { it >= 0 } ?: yearsList.lastIndex
7575
val startMonthIndex =
76-
if (isMonthNull) monthsList.lastIndex else monthsList.indexOf("${chosenMonth ?: "-"}")
76+
if (isMonthNull) monthsList.lastIndex else monthsList.indexOf("${chosenMonth ?: NULL_DATE}")
7777
.takeIf { it >= 0 } ?: monthsList.lastIndex
7878

7979
Row(

0 commit comments

Comments
 (0)