mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
Fix settings page not showing correctly current selections
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user