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 ) ); 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",