mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4689 - Fix condition for one notification (#2211)
This commit is contained in:
parent
d702a5580e
commit
769b26e28a
@ -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[] = [];
|
||||
|
Loading…
Reference in New Issue
Block a user