fix(webpush): simplify condition for enabling push notifications

Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
This commit is contained in:
0xsysr3ll
2025-12-17 18:11:32 +01:00
parent 4b4272dc10
commit e5c95e00b9

View File

@@ -185,7 +185,7 @@ const UserWebPushSettings = () => {
(device) => device.userAgent === currentUserAgent
);
if (hasMatchingDevice || dataDevices.length === 1) {
if (hasMatchingDevice) {
isEnabled = true;
}
}