Skip to content

Commit

Permalink
[Chore/#122] 메소드 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLOHIDI committed Nov 27, 2024
1 parent a6228a7 commit 08cff8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Combine
import Core

public protocol MyPageUseCaseType {
func getUserDate() -> AnyPublisher<User, UserError>
func getUserData() -> AnyPublisher<User, UserError>
func logout()
func revokeUser()
}
Expand All @@ -24,7 +24,7 @@ final class MyPageUseCase: MyPageUseCaseType {
self.userRepository = userRepository
}

func getUserDate() -> AnyPublisher<User, UserError> {
func getUserData() -> AnyPublisher<User, UserError> {
userRepository.getUserData()
.map { $0 }
.eraseToAnyPublisher()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MyPageViewModel: ObservableObject {
func send(action: Action) {
switch action {
case .onAppearEvent:
useCase.getUserDate()
useCase.getUserData()
.sink { _ in
} receiveValue: { [weak self] data in
self?.state.name = data.name
Expand Down

0 comments on commit 08cff8d

Please sign in to comment.