From 05e5cb04b9c187b76b6e441434c793a344b6faa6 Mon Sep 17 00:00:00 2001 From: jessy-david-dev Date: Sun, 12 Apr 2026 16:33:18 +0200 Subject: [PATCH] fix(multi): redirect to lobby after next round and reset game; keep article detail links visible --- app/components/ArticleView.tsx | 2 +- lib/useGameHandlers.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/ArticleView.tsx b/app/components/ArticleView.tsx index 322cd5d..c205c0f 100644 --- a/app/components/ArticleView.tsx +++ b/app/components/ArticleView.tsx @@ -50,7 +50,7 @@ function cleanWikiHtml(container: HTMLElement): void { .forEach((el) => el.remove()); container .querySelectorAll( - ".ambox, .tmbox, .cmbox, .ombox, .fmbox, .hatnote, .bandeau-container, .bandeau", + ".ambox, .tmbox, .cmbox, .ombox, .fmbox, .bandeau-container, .bandeau", ) .forEach((el) => el.remove()); container diff --git a/lib/useGameHandlers.ts b/lib/useGameHandlers.ts index e4647d3..5d5fb55 100644 --- a/lib/useGameHandlers.ts +++ b/lib/useGameHandlers.ts @@ -85,12 +85,12 @@ export function useGameHandlers({ async function handleNextRound() { await multi.nextRound(); - // On reste sur "game" - le GameScreen affiche le lobby quand phase === "waiting" + setScreen("lobby"); } async function handleResetGame() { await multi.resetGame(); - // On reste sur "game" - le GameScreen affiche le lobby quand phase === "waiting" + setScreen("lobby"); } function handleLeave() {