Skip to content

Commit

Permalink
[LOOP-5218] correctly assign isOnboardingCompleted (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamming authored Jan 15, 2025
1 parent 3d07070 commit 1c0bfcc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Loop/View Controllers/StatusTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,12 @@ final class StatusTableViewController: LoopChartsTableViewController {

onboardingManager.$isComplete
.merge(with: onboardingManager.$isSuspended)
.sink { [weak self] isComplete in
.sink { [weak self] _ in
guard let self else { return }
Task { @MainActor in
self?.statusTableViewModel.settingsViewModel.isOnboardingComplete = isComplete
self?.refreshContext.update(with: .status)
await self?.reloadData(animated: true)
self.statusTableViewModel.settingsViewModel.isOnboardingComplete = self.onboardingManager.isComplete
self.refreshContext.update(with: .status)
await self.reloadData(animated: true)
}
}
.store(in: &cancellables)
Expand Down

0 comments on commit 1c0bfcc

Please sign in to comment.