fix notifications register button from being incorrectly disabled

This commit is contained in:
Josh Hawkins 2025-08-06 22:01:21 -05:00
parent 6103ee604b
commit 9241ddc1f0

View File

@ -523,7 +523,9 @@ export default function NotificationView({
aria-label={t("notification.registerDevice")}
disabled={
(!config?.notifications.enabled &&
notificationCameras.length === 0) ||
notificationCameras.length === 0 &&
!form.watch("allEnabled") &&
form.watch("cameras").length === 0) ||
publicKey == undefined
}
onClick={() => {