Skip to content

Commit

Permalink
Update App.js
Browse files Browse the repository at this point in the history
  • Loading branch information
romw314 authored Dec 1, 2023
1 parent 57bfa2e commit b6d4ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class setupData {

function ThemedApp() {
const [params] = useSearchParams();
return <App setupData={new setupData(Theme(params.get('theme') || 'dark', getLg))} navigate={useNavigate()} />;
return <App setupData={new setupData(Theme(params.get('theme') ?? 'dark', getLg))} navigate={useNavigate()} />;
}

function createHistoryObject(squares) {
Expand Down

0 comments on commit b6d4ccd

Please sign in to comment.