mirror of
https://github.com/averel10/crypto_clash.git
synced 2026-03-12 19:08:11 +01:00
update game logic and UI components for move selection and reveal phases; remove Lobby component
This commit is contained in:
@@ -55,7 +55,6 @@ export default function GameList({
|
||||
}
|
||||
|
||||
setGames(gameDetails);
|
||||
|
||||
// Check which games the user is participating in
|
||||
if (account) {
|
||||
const userGames = new Set<number>();
|
||||
@@ -85,7 +84,7 @@ export default function GameList({
|
||||
return () => {
|
||||
if (interval) clearInterval(interval);
|
||||
};
|
||||
}, [contract, web3]);
|
||||
}, [contract, web3, account]);
|
||||
|
||||
// Join an existing game
|
||||
const handleJoinGame = async (gameId: number, bet: string) => {
|
||||
|
||||
Reference in New Issue
Block a user