summaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-04-30 00:14:11 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-04-30 00:14:49 +0200
commit474dbb94d07621bb263e61f2c300f5ef29b40de3 (patch)
treebe0798e552c425216e17bcb33227a054f90c4358 /frontend/src
parentUpgrade to reflexbox 3.0.1 (diff)
downloadseven-wonders-474dbb94d07621bb263e61f2c300f5ef29b40de3.tar.gz
seven-wonders-474dbb94d07621bb263e61f2c300f5ef29b40de3.tar.bz2
seven-wonders-474dbb94d07621bb263e61f2c300f5ef29b40de3.zip
Remove unused history variable from rootSaga
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/sagas.js3
-rw-r--r--frontend/src/store.js2
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,
bgstack15