@@ -94,7 +94,12 @@ export default function Home() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handlePlayAgain = () => {
|
const handlePlayAgain = () => {
|
||||||
|
// For AI games, use requestRematch which restarts immediately
|
||||||
|
if (roomId?.startsWith('AI-')) {
|
||||||
|
requestRematch();
|
||||||
|
} else {
|
||||||
leaveRoom();
|
leaveRoom();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Show lobby if no game state or game mode is waiting
|
// Show lobby if no game state or game mode is waiting
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user