Skip to content

Commit

Permalink
fix: Notifications with intervals <= 0 not working
Browse files Browse the repository at this point in the history
  • Loading branch information
othyn committed Jul 1, 2023
1 parent a27b11e commit 731c6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto-clicker/Services/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class NotificationService: ObservableObject {
content.body = body
}

let interval = date.timeIntervalSinceNow.rounded()
let interval = date.timeIntervalSinceNow.rounded() > 0 ? date.timeIntervalSinceNow.rounded() : 1

LoggerService.logNotification(title: title,
date: date,
Expand Down

0 comments on commit 731c6de

Please sign in to comment.