summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/lobby.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/sagas/lobby.js')
-rw-r--r--frontend/src/sagas/lobby.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/frontend/src/sagas/lobby.js b/frontend/src/sagas/lobby.js
index 7b52ad29..d11511e8 100644
--- a/frontend/src/sagas/lobby.js
+++ b/frontend/src/sagas/lobby.js
@@ -15,11 +15,7 @@ function getCurrentGameId() {
function* watchLobbyUpdates({ socket }) {
const currentGameId = getCurrentGameId();
- const lobbyUpdatesChannel = yield call(
- createSubscriptionChannel,
- socket,
- `/topic/lobby/${currentGameId}/updated`
- );
+ const lobbyUpdatesChannel = yield call(createSubscriptionChannel, socket, `/topic/lobby/${currentGameId}/updated`);
try {
while (true) {
const lobby = yield take(lobbyUpdatesChannel);
@@ -34,11 +30,7 @@ function* watchLobbyUpdates({ socket }) {
function* watchGameStart({ socket }) {
const currentGameId = getCurrentGameId();
- const gameStartedChannel = yield call(
- createSubscriptionChannel,
- socket,
- `/topic/lobby/${currentGameId}/started`
- );
+ const gameStartedChannel = yield call(createSubscriptionChannel, socket, `/topic/lobby/${currentGameId}/started`);
try {
yield take(gameStartedChannel);
yield put(gameActions.enterGame());
bgstack15