Skip to content

Commit 2b822aa

Browse files
committed
Also cancel all types of local notifications before scheduling another one.
1 parent cbe396c commit 2b822aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/Authentication/AuthenticationManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ private extension AuthenticationManager {
496496
}
497497

498498
if let notification = notification {
499-
ServiceLocator.pushNotesManager.cancelLocalNotification(scenarios: [notification.scenario])
499+
ServiceLocator.pushNotesManager.cancelLocalNotification(scenarios: LocalNotification.Scenario.allCases)
500500
ServiceLocator.pushNotesManager.requestLocalNotification(notification,
501501
// 24 hours from now.
502502
trigger: UNTimeIntervalNotificationTrigger(timeInterval: 86400, repeats: false))

0 commit comments

Comments
 (0)