summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/lobby.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-08-07 23:56:23 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-08-07 23:56:23 +0200
commit6b9ebbfbd6fbe47900a4f2e785c550edb915669a (patch)
treebfff955ecd3fe675c679b905359326792a526ab3 /frontend/src/sagas/lobby.js
parentRemove unnecessary selector (diff)
downloadseven-wonders-6b9ebbfbd6fbe47900a4f2e785c550edb915669a.tar.gz
seven-wonders-6b9ebbfbd6fbe47900a4f2e785c550edb915669a.tar.bz2
seven-wonders-6b9ebbfbd6fbe47900a4f2e785c550edb915669a.zip
Fix flow errors
Diffstat (limited to 'frontend/src/sagas/lobby.js')
-rw-r--r--frontend/src/sagas/lobby.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/sagas/lobby.js b/frontend/src/sagas/lobby.js
index 754bc5bb..3f23a125 100644
--- a/frontend/src/sagas/lobby.js
+++ b/frontend/src/sagas/lobby.js
@@ -3,7 +3,7 @@ import { normalize } from 'normalizr';
import { push } from 'react-router-redux';
import type { Channel } from 'redux-saga';
import { eventChannel } from 'redux-saga';
-import { apply, call, put, take } from 'redux-saga/effects';
+import { apply, call, put, take, all } from 'redux-saga/effects';
import { SevenWondersSession } from '../api/sevenWondersApi';
import { actions as gameActions, types } from '../redux/games';
import { actions as playerActions } from '../redux/players';
@@ -49,7 +49,7 @@ function* startGame(session: SevenWondersSession): * {
}
function* lobbySaga(session: SevenWondersSession): * {
- yield [call(watchLobbyUpdates, session), call(watchGameStart, session), call(startGame, session)];
+ yield all([call(watchLobbyUpdates, session), call(watchGameStart, session), call(startGame, session)]);
}
export default lobbySaga;
bgstack15