Add ignoring dependency to changeAlarmEnabled
This commit is contained in:
parent
19470f6ac0
commit
c3ce545508
|
@ -106,7 +106,7 @@ export default function SettingsPage() {
|
|||
if (enabled && !ignoring) setShowBattery(true);
|
||||
setItem('alarmEnabled', enabled ? 'true' : 'false');
|
||||
},
|
||||
[alarmEnabled, setShowBattery],
|
||||
[alarmEnabled, setShowBattery, ignoring],
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue
Block a user