Skip to content

Commit

Permalink
[add/#185] 유저정보 fetch 분기처리를 위한 state 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonsuKang committed Mar 3, 2025
1 parent 29efc98 commit 7be875c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sealed class SettingContract {
val isDialogVisible: Boolean = false,
val isNameValid: Boolean = true,
val isTimeValid: Boolean = true,
val shouldFetchUserInfo: Boolean = true,
) : UiState {
val birthDateFormatted: String
get() {
Expand All @@ -29,7 +30,7 @@ sealed class SettingContract {
return "$birthType $year $month $day"
}
val isActionEnabled: Boolean
get() = isNameValid && isTimeValid && selectedGender != null
get() = isNameValid && (isTimeUnknown || (timeOfBirth.length == 5 && isTimeValid)) && selectedGender != null
}

sealed class Action {
Expand Down

0 comments on commit 7be875c

Please sign in to comment.