summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/gameBrowser.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/sagas/gameBrowser.js')
-rw-r--r--frontend/src/sagas/gameBrowser.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/sagas/gameBrowser.js b/frontend/src/sagas/gameBrowser.js
index 19d52df9..5b7227df 100644
--- a/frontend/src/sagas/gameBrowser.js
+++ b/frontend/src/sagas/gameBrowser.js
@@ -25,7 +25,7 @@ function gameBrowserChannel(socket) {
})
}
-export function* watchGames({ socket }) {
+export function *watchGames({ socket }) {
const socketChannel = gameBrowserChannel(socket)
try {
@@ -50,13 +50,13 @@ export function* watchGames({ socket }) {
}
}
-export function* createGame({ socket }) {
+export function *createGame({ socket }) {
const { name } = yield take(types.CREATE_GAME)
socket.send("/app/lobby/create", JSON.stringify({ gameName: name }), {})
}
-export function* gameBrowserSaga(socketConnection) {
+export function *gameBrowserSaga(socketConnection) {
yield [
call(watchGames, socketConnection),
call(createGame, socketConnection)
bgstack15