From d796ff185f8124ae239762fa1d42d0bf9ab0cc40 Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 11 Mar 2024 15:46:43 +0700 Subject: [PATCH] MOB-1871 - Fixed issue when user couldn't login with website account during onboarding. (#426) --- .../LoadingParkedDomainsOnboardingViewPresenter.swift | 1 + .../Services/UserProfileService/UserProfileService.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/unstoppable-ios-app/domains-manager-ios/Modules/ParkedDomains/LoadingParkedDomains/LoadingParkedDomainsOnboardingViewPresenter.swift b/unstoppable-ios-app/domains-manager-ios/Modules/ParkedDomains/LoadingParkedDomains/LoadingParkedDomainsOnboardingViewPresenter.swift index 7aff98f72..76ee0be28 100644 --- a/unstoppable-ios-app/domains-manager-ios/Modules/ParkedDomains/LoadingParkedDomains/LoadingParkedDomainsOnboardingViewPresenter.swift +++ b/unstoppable-ios-app/domains-manager-ios/Modules/ParkedDomains/LoadingParkedDomains/LoadingParkedDomainsOnboardingViewPresenter.swift @@ -31,6 +31,7 @@ final class LoadingParkedDomainsOnboardingViewPresenter: LoadingParkedDomainsVie case .email, .google, .twitter: let parkedDomains = try await appContext.firebaseParkedDomainsService.getParkedDomains() let displayInfo = parkedDomains.map({ FirebaseDomainDisplayInfo(firebaseDomain: $0) }) + await Task.sleep(seconds: CNavigationController.animationDuration) await MainActor.run { if parkedDomains.isEmpty { diff --git a/unstoppable-ios-app/domains-manager-ios/Services/UserProfileService/UserProfileService.swift b/unstoppable-ios-app/domains-manager-ios/Services/UserProfileService/UserProfileService.swift index 6b37ef49a..0020fe963 100644 --- a/unstoppable-ios-app/domains-manager-ios/Services/UserProfileService/UserProfileService.swift +++ b/unstoppable-ios-app/domains-manager-ios/Services/UserProfileService/UserProfileService.swift @@ -101,7 +101,7 @@ private extension UserProfileService { let selectedProfile = profiles.first(where: { $0.id == UserDefaults.selectedProfileId }) ?? profiles.first setSelectedProfile(selectedProfile) - if profiles.isEmpty { + if profiles.isEmpty, !currentProfilesList.isEmpty { Task { await SceneDelegate.shared?.restartOnboarding() firebaseParkedDomainsAuthenticationService.logOut()