mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-10 07:58:50 +01:00
parent
0586194dcc
commit
2b05784a37
1 changed files with 2 additions and 2 deletions
|
@ -984,10 +984,10 @@ function PushNotificationsSection({ onClose }) {
|
|||
const policyEl = elements.namedItem('policy');
|
||||
if (policyEl) policyEl.value = policy;
|
||||
// alerts is {}, iterate it
|
||||
Object.keys(alerts).forEach((alert) => {
|
||||
Object.entries(alerts).forEach(([alert, value]) => {
|
||||
const el = elements.namedItem(alert);
|
||||
if (el?.type === 'checkbox') {
|
||||
el.checked = true;
|
||||
el.checked = !!value;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue