diff --git a/src/pages/settings.jsx b/src/pages/settings.jsx index 14d961c3..f8e70349 100644 --- a/src/pages/settings.jsx +++ b/src/pages/settings.jsx @@ -690,9 +690,10 @@ function PushNotificationsSection({ onClose }) { ) { setAllowNotifications(true); const { alerts, policy } = backendSubscription; + console.log('backendSubscription', backendSubscription); previousPolicyRef.current = policy; const { elements } = pushFormRef.current; - const policyEl = elements.namedItem(policy); + const policyEl = elements.namedItem('policy'); if (policyEl) policyEl.value = policy; // alerts is {}, iterate it Object.keys(alerts).forEach((alert) => { @@ -721,65 +722,68 @@ function PushNotificationsSection({ onClose }) {