Skip to content

Commit

Permalink
SDA-4689 - Fix condition for one notification (#2211)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan authored Oct 3, 2024
1 parent d702a55 commit 769b26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/notification-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,13 @@ export default class NotificationHandler {
startPos: number,
activeNotifications: BrowserWindow[],
): void {
if (startPos >= activeNotifications.length || startPos === -1) {
if (activeNotifications.length === 0 || startPos === -1) {
return;
}

// Adjust startPos for lower corners
if (['lower-right', 'lower-left'].includes(this.settings.startCorner)) {
startPos -= 1;
startPos = Math.max(0, startPos - 1);
}

const notificationPosArray: number[] = [];
Expand Down

0 comments on commit 769b26e

Please sign in to comment.