Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jan 8, 2025
1 parent fdf271c commit 7b4098a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/frontend/components/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ function mainMenu(

export function Menu({ onNewGame, client, reloadClient }: Props) {
const [currentMenu, setCurrentMenu] = useState(GameMenu.MainMenu);
const [clientReady, setClientReady] = useState(client?.ready);

client?.once("sync", () => {
setClientReady(true);
});

const onStartNewGame = useCallback(
(scenario: string, level?: keyof AssetData) => {
Expand All @@ -91,7 +86,7 @@ export function Menu({ onNewGame, client, reloadClient }: Props) {
);

if (currentMenu === GameMenu.MainMenu) {
return mainMenu(onStartNewGame, setCurrentMenu, clientReady);
return mainMenu(onStartNewGame, setCurrentMenu);
} else if (currentMenu === GameMenu.AccountMenu) {
return (
<AccountMenu
Expand Down

0 comments on commit 7b4098a

Please sign in to comment.