Skip to content

Commit

Permalink
[Fix] #170 - 카카오 로그인 시, isNewUser 값 체크 후 바로 return 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
boogios committed Mar 22, 2024
1 parent 76f1e7a commit 02fda3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ final class LoginViewModel: NSObject, ViewModelType {
Task {
do {
let result = try await self.postSocialLoginAPI(socialPlatform: "KAKAO", accessToken: accessToken, userName: nil)?.data
let isNewUser = result?.isNewUser ?? false
guard let isNewUser = result?.isNewUser else { return }
let nickname = result?.nickName ?? ""
if !isNewUser && !nickname.isEmpty {
self.userInfoPublisher.send(false)
Expand Down

0 comments on commit 02fda3a

Please sign in to comment.