Fix settings page not showing correctly current selections

This commit is contained in:
Kalle
2023-10-19 17:40:41 +03:00
parent 9b727fbe41
commit 3febe5c48e

View File

@@ -32,7 +32,7 @@ const sounds = [
function Sounds() {
// default to true
const currentValue = (code: string) =>
!localStorage.getItem(code) ||
!localStorage.getItem(soundCodeToLocalStorageKey(code)) ||
localStorage.getItem(soundCodeToLocalStorageKey(code)) === "true";
const [soundValues, setSoundValues] = React.useState(