Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
refactor: 로그인 실패 시 toast message 개선 #82
Browse files Browse the repository at this point in the history
  • Loading branch information
llghdud921 committed Jul 25, 2022
1 parent 86b30be commit 6ce275a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class SignInCoordinator: Coordinator {
passwordFindCoordinator.start()
}

func showToastMessage() {
signInViewController.showToast(message: "이메일·비밀번호가 일치하지 않습니다.")
func showToastMessage(text: String) {
signInViewController.showToast(message: text)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extension SignInViewModel {
ToeknManager.shared.createTokens(accessToken: tokenData.accessToken, refreshToken: tokenData.refreshToken)
self.userID()
}, onFailure: { _ in
self.coordinator?.showToastMessage()
self.coordinator?.showToastMessage(text: "네트워크 요청에 실패하였습니다")
}, onDisposed: nil)
.disposed(by: disposeBag)
}
Expand All @@ -94,7 +94,7 @@ extension SignInViewModel {
UserDataStorage.shared.setUserID(id: id)
self.coordinator?.showMainScene()
}, onFailure: { _ in
self.coordinator?.showToastMessage()
self.coordinator?.showToastMessage(text: "네트워크 요청에 실패하였습니다")
}, onDisposed: nil)
.disposed(by: disposeBag)
}
Expand Down

0 comments on commit 6ce275a

Please sign in to comment.