From 85db021575b382ae205bc562352772182d075ee2 Mon Sep 17 00:00:00 2001 From: Sahand Seifi Date: Wed, 5 Nov 2025 18:40:52 -0500 Subject: [PATCH 1/2] Fix duplicate sub notifcations in preferences --- lib/components/Preferences/Preferences.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/Preferences/Preferences.tsx b/lib/components/Preferences/Preferences.tsx index 17fa275..c250627 100644 --- a/lib/components/Preferences/Preferences.tsx +++ b/lib/components/Preferences/Preferences.tsx @@ -31,7 +31,9 @@ export function Preferences() { const subNotifications = context.preferences?.subNotifications.filter( (sn) => subPreferences?.find( - (p) => p.subNotificationId === sn.subNotificationId + (p) => + p.subNotificationId === sn.subNotificationId && + p.notificationId === sn.notificationId ) ); From 147a800b3cce42b0103510d13a65183f9180bf1e Mon Sep 17 00:00:00 2001 From: Sahand Seifi Date: Wed, 5 Nov 2025 18:41:00 -0500 Subject: [PATCH 2/2] 1.6.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index d1b8080..4ac2b09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@notificationapi/react", - "version": "1.6.1", + "version": "1.6.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@notificationapi/react", - "version": "1.6.1", + "version": "1.6.2", "dependencies": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", diff --git a/package.json b/package.json index 3eea77e..a6db530 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@notificationapi/react", "private": false, - "version": "1.6.1", + "version": "1.6.2", "type": "module", "overrides": { "esbuild": "^0.25.0",