Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

EOL-14954-offline-onboarding-shows-popup-for-risk-calculation #5156

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Prevent showing the background fetch alert
  • Loading branch information
30mar committed Apr 12, 2023
commit 2bad6a0afa0311f544c26d012e69a3fcc07178f3
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ class HomeTableViewController: UITableViewController, NavigationBarOpacityDelega
private func showBackgroundFetchAlertIfNeeded(completion: @escaping () -> Void = {}) {
if CWAHibernationProvider.shared.isHibernationState {
completion()
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we need a return here, I would prefer a guard. That's the same result, but makes the code more clearly. :)

}

let status = UIApplication.shared.backgroundRefreshStatus
Expand Down