diff options
Diffstat (limited to 'frontend/src')
-rw-r--r-- | frontend/src/sagas.js | 3 | ||||
-rw-r--r-- | frontend/src/store.js | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/frontend/src/sagas.js b/frontend/src/sagas.js index 40f8a587..d9069051 100644 --- a/frontend/src/sagas.js +++ b/frontend/src/sagas.js @@ -1,5 +1,4 @@ // @flow -import type { History } from 'react-router'; import { call, fork } from 'redux-saga/effects'; import { connectToGame, SevenWondersSession } from './api/sevenWondersApi'; import { errorHandlingSaga } from './sagas/errors'; @@ -7,7 +6,7 @@ import { gameBrowserSaga } from './sagas/gameBrowser'; import { homeSaga } from './sagas/home'; import { lobbySaga } from './sagas/lobby'; -export function* rootSaga(history: History): * { +export function* rootSaga(): * { let sevenWondersSession: SevenWondersSession | void; try { sevenWondersSession = yield call(connectToGame); diff --git a/frontend/src/store.js b/frontend/src/store.js index 9c0be13a..5c958afc 100644 --- a/frontend/src/store.js +++ b/frontend/src/store.js @@ -24,7 +24,7 @@ export function configureStore(initialState: Object = {}) { const store = createStore(createReducer(), fromJS(initialState), composeEnhancers(...enhancers)); - sagaMiddleware.run(rootSaga, history); + sagaMiddleware.run(rootSaga); return { store, |