From 3febe5c48ef29a7a36698a9bfe1375d051381a79 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:40:41 +0300 Subject: [PATCH] Fix settings page not showing correctly current selections --- app/features/settings/routes/settings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/features/settings/routes/settings.tsx b/app/features/settings/routes/settings.tsx index fbb78323c..418d9d705 100644 --- a/app/features/settings/routes/settings.tsx +++ b/app/features/settings/routes/settings.tsx @@ -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(