Skip to content

Commit

Permalink
Stop first scan completed notification being sent if there's an error
Browse files Browse the repository at this point in the history
  • Loading branch information
THISISDINOSAUR committed Apr 24, 2024
1 parent 83754f7 commit f66b957
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ public final class DefaultDataBrokerProtectionScheduler: DataBrokerProtectionSch

self.startScheduler(showWebView: showWebView)

self.userNotificationService.sendFirstScanCompletedNotification()
if errors?.oneTimeError == nil {
self.userNotificationService.sendFirstScanCompletedNotification()
}

if let hasMatches = try? self.dataManager.hasMatches(),
hasMatches {
Expand Down

0 comments on commit f66b957

Please sign in to comment.