diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-28 22:18:26 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-28 22:18:26 +0200 |
commit | 5e07cdaaf0aa37298a5ed72a35519d21c9be6069 (patch) | |
tree | ded13a3acfa72b4c70fee9cc623c2fc7d1dda334 /frontend/src/sagas/errors.js | |
parent | Merge pull request #14 from luxons/immutable (diff) | |
download | seven-wonders-5e07cdaaf0aa37298a5ed72a35519d21c9be6069.tar.gz seven-wonders-5e07cdaaf0aa37298a5ed72a35519d21c9be6069.tar.bz2 seven-wonders-5e07cdaaf0aa37298a5ed72a35519d21c9be6069.zip |
Remove error history from the state
Diffstat (limited to 'frontend/src/sagas/errors.js')
-rw-r--r-- | frontend/src/sagas/errors.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/frontend/src/sagas/errors.js b/frontend/src/sagas/errors.js index 41eb6902..e43875ae 100644 --- a/frontend/src/sagas/errors.js +++ b/frontend/src/sagas/errors.js @@ -1,8 +1,5 @@ -import { apply, call, cancelled, put, take } from 'redux-saga/effects'; - +import { apply, call, cancelled, take } from 'redux-saga/effects'; import { createSubscriptionChannel } from '../utils/websocket'; -import { actions } from '../redux/errors'; - import { toastr } from 'react-redux-toastr'; export default function* errorHandlingSaga({ socket }) { @@ -24,7 +21,6 @@ function* handleOneError(err) { console.error('Error received on web socket channel', err); const msg = buildMsg(err); yield apply(toastr, toastr.error, [msg, { icon: 'error' }]); - yield put(actions.errorReceived(err)); } function buildMsg(err) { |