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 23, 2024
1 parent 859c23f commit 572b32c
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 572b32c

Please sign in to comment.