Skip to content

Commit

Permalink
style: ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ki960213 committed Aug 4, 2023
1 parent 52c7e90 commit 5850fd9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class ConferenceFilterViewModel(
if ((_eventFilters.value as? ConferenceFiltersUiState.Success)?.selectedEndDate?.let {
val endDate = LocalDate.of(it.year, it.month, 1)
startDate.isAfter(endDate)
} == true) {
} == true
) {
_eventFilters.postValue(
(_eventFilters.value as? ConferenceFiltersUiState.Success)?.copy(
selectedStartDate = filterDate,
Expand All @@ -130,7 +131,8 @@ class ConferenceFilterViewModel(
if ((_eventFilters.value as? ConferenceFiltersUiState.Success)?.selectedStartDate?.let {
val startDate = LocalDate.of(it.year, it.month, 1)
endDate.isBefore(startDate) || (endDate.year == startDate.year && endDate.monthValue == startDate.monthValue)
} == true) {
} == true
) {
return
}

Expand Down

0 comments on commit 5850fd9

Please sign in to comment.