Skip to content

Commit

Permalink
MOB-1871 - Fixed issue when user couldn't login with website account …
Browse files Browse the repository at this point in the history
…during onboarding. (#426)
  • Loading branch information
Oleg-Pecheneg authored Mar 11, 2024
1 parent d378fcd commit d796ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d796ff1

Please sign in to comment.