Skip to content

Commit

Permalink
chore: Update LiveRanking component to read autoToggleActive preferen…
Browse files Browse the repository at this point in the history
…ce from local storage
  • Loading branch information
JEK58 committed May 26, 2024
1 parent c1c9f66 commit 75efaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LiveRanking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function LiveRanking({ liveData }: LiveDataProps) {

// Read prefs from local storage
if (typeof window !== "undefined") {
const prefs = getPrefsFromLocalStorage() ?? false;
const prefs = getPrefsFromLocalStorage() ?? autoToggleActive;
if (prefs != autoToggleActive) setAutoToggleActive(prefs);
}

Expand Down

0 comments on commit 75efaa1

Please sign in to comment.