Skip to content

Commit

Permalink
Merge pull request #188 from LifePoop/187-signup_error_fix
Browse files Browse the repository at this point in the history
회원가입 시 생년월일값이 빈 값일 때 nil 리턴하도록 수정
  • Loading branch information
sanghyeok-kim authored Dec 23, 2023
2 parents 6295d4d + cb465cf commit bfa8c24
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ public final class DefaultSignupUseCase: SignupUseCase {

// TODO: 추후에 Utils에 구현된 부분으로 대체 가능한 지 확인 후 제거
public func createFormattedDateString(with dateString: String?) -> String? {
guard let dateString = dateString else { return nil }
guard
let dateString = dateString,
dateString.count > 0
else { return nil }

let inputDateFormatter = DateFormatter()
inputDateFormatter.dateFormat = "yyMMdd"
Expand Down

0 comments on commit bfa8c24

Please sign in to comment.