마케팅 정보를 업데이트를 앱을 실행할 때 한번만 실행하도록 수정
로그인/회원가입 시 마케팅 정보를 업데이트 하도록 수정
This commit is contained in:
@@ -11,6 +11,7 @@ import Combine
|
||||
import Moya
|
||||
|
||||
final class SignUpViewModel: ObservableObject {
|
||||
private let appViewModel = AppViewModel()
|
||||
private let repository = UserRepository()
|
||||
private var subscription = Set<AnyCancellable>()
|
||||
|
||||
@@ -58,6 +59,7 @@ final class SignUpViewModel: ObservableObject {
|
||||
UserDefaults.set(data.userId, forKey: .userId)
|
||||
UserDefaults.set(data.email, forKey: .email)
|
||||
UserDefaults.set(data.token, forKey: .token)
|
||||
self.appViewModel.fetchAndUpdateIdfa()
|
||||
AppState.shared.isChangeAdultContentVisible = true
|
||||
AppState.shared.setAppStep(step: .splash)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user