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

Conversation

30mar
Copy link
Contributor

@30mar 30mar commented Apr 12, 2023

Description

Missing return from the hibernation check makes the alert shows in some cases

Link to Jira

https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-14954

Screenshots

RPReplay_Final1683108662.MP4

@30mar 30mar added the bug Something isn't working label Apr 12, 2023
@30mar 30mar added this to the v3.2.0 milestone Apr 12, 2023
@30mar 30mar requested a review from a team April 12, 2023 10:19
@30mar 30mar changed the title Prevent showing the background fetch alert EOL-14954-offline-onboarding-shows-popup-for-risk-calculation Apr 12, 2023
@@ -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. :)

@30mar 30mar merged commit 40f97cc into release/3.2.x Apr 12, 2023
@30mar 30mar deleted the fix/14954-offline-onboarding-shows-popup-for-risk-calculation branch April 12, 2023 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants