From a4aa3291cd4b2924ae41a0e50e5b642b6a7e1c1e Mon Sep 17 00:00:00 2001 From: apetitco Date: Tue, 13 Jan 2026 17:27:22 +0100 Subject: [PATCH] Changed toaster messages for queue joining and leaving actions, removed toast that displays updates about the queue. --- frontend/src/pages/ttt/ttt.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/ttt/ttt.ts b/frontend/src/pages/ttt/ttt.ts index badbe6e..392b122 100644 --- a/frontend/src/pages/ttt/ttt.ts +++ b/frontend/src/pages/ttt/ttt.ts @@ -95,8 +95,12 @@ async function handleTTT(): Promise { let curGameX: { id: string, name: string } | null = null; let curGameO: { id: string, name: string } | null = null; - socket.on('updateInformation', (e) => showInfo(`UpdateInformation: t=${e.totalUser};q=${e.inQueue}`)); - socket.on('queueEvent', (e) => showInfo(`QueueEvent: ${e}`)); + socket.on('queueEvent', (e) => { + if (joinQueueBtn.innerText !== QueueState.InQueue) + showInfo('Queue left!'); + else + showInfo('Queue joined!'); + }); socket.on('newGame', async (gameState) => { showInfo(`newGame: ${gameState.gameId}`)