Add ignoring dependency to changeAlarmEnabled

This commit is contained in:
Brandon Presley 2022-07-09 19:42:10 +12:00
parent 19470f6ac0
commit c3ce545508
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ export default function SettingsPage() {
if (enabled && !ignoring) setShowBattery(true);
setItem('alarmEnabled', enabled ? 'true' : 'false');
},
[alarmEnabled, setShowBattery],
[alarmEnabled, setShowBattery, ignoring],
);
return (