From e5c95e00b9a339902ce28f076e4aeab4c3fc707a Mon Sep 17 00:00:00 2001 From: 0xsysr3ll <0xsysr3ll@pm.me> Date: Wed, 17 Dec 2025 18:11:32 +0100 Subject: [PATCH] fix(webpush): simplify condition for enabling push notifications Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me> --- .../UserNotificationSettings/UserNotificationsWebPush/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush/index.tsx b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush/index.tsx index f86191e42..0558b7fc7 100644 --- a/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush/index.tsx +++ b/src/components/UserProfile/UserSettings/UserNotificationSettings/UserNotificationsWebPush/index.tsx @@ -185,7 +185,7 @@ const UserWebPushSettings = () => { (device) => device.userAgent === currentUserAgent ); - if (hasMatchingDevice || dataDevices.length === 1) { + if (hasMatchingDevice) { isEnabled = true; } }