From c173b35a2876e10a84df66ad53fe21d1a6181679 Mon Sep 17 00:00:00 2001 From: jinukeu Date: Tue, 16 Jan 2024 01:54:25 +0900 Subject: [PATCH] chore: ktlint --- .../datepicker/SusuDatePickerBottomSheet.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/designsystem/src/main/java/com/susu/core/designsystem/component/bottomsheet/datepicker/SusuDatePickerBottomSheet.kt b/core/designsystem/src/main/java/com/susu/core/designsystem/component/bottomsheet/datepicker/SusuDatePickerBottomSheet.kt index 982ee487..b9f0850a 100644 --- a/core/designsystem/src/main/java/com/susu/core/designsystem/component/bottomsheet/datepicker/SusuDatePickerBottomSheet.kt +++ b/core/designsystem/src/main/java/com/susu/core/designsystem/component/bottomsheet/datepicker/SusuDatePickerBottomSheet.kt @@ -155,10 +155,14 @@ fun SusuLimitDatePickerBottomSheet( mutableIntStateOf( when { initialDay == null -> criteriaDay - (afterDate && initialYear != null && initialYear == criteriaYear && initialMonth != null && - initialMonth == criteriaMonth && initialDay < criteriaDay) || - (!afterDate && initialYear != null && initialYear == criteriaYear && initialMonth != null && - initialMonth == criteriaMonth && initialDay > criteriaDay) + ( + afterDate && initialYear != null && initialYear == criteriaYear && initialMonth != null && + initialMonth == criteriaMonth && initialDay < criteriaDay + ) || + ( + !afterDate && initialYear != null && initialYear == criteriaYear && initialMonth != null && + initialMonth == criteriaMonth && initialDay > criteriaDay + ) -> criteriaDay else -> initialDay },