Skip to content

Commit

Permalink
Fix category mode
Browse files Browse the repository at this point in the history
  • Loading branch information
UO287747 committed Apr 27, 2024
1 parent 713c00f commit c7ddf7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/Game.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const Game = ({ gameMode, locale, daltonicMode }) => {

const changeCategory = (category) => {
setCategory(category);
setCustomSettings(prevSettings => ({ ...prevSettings, category:category }));
setRestart(!restart);
goTo(0);
}
Expand All @@ -30,7 +31,7 @@ export const Game = ({ gameMode, locale, daltonicMode }) => {
gMode: gMode,
maxTime: 3,
numberQ: 10,
category: "general"
category: category
});

const startCustomGame = () => {
Expand Down

0 comments on commit c7ddf7d

Please sign in to comment.