summaryrefslogtreecommitdiff
path: root/app/client/socket
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-29 17:10:04 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-29 17:10:04 +0200
commitd5b95568926623245257c618238485bd41bf66cd (patch)
tree7f3bcb1ffc5e3015890c368aa35fd2d76ade98be /app/client/socket
parent3791925f07a2e21c3c99c18222b9773ff174344d (diff)
reducer for socket events
Diffstat (limited to 'app/client/socket')
-rw-r--r--app/client/socket/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/client/socket/index.js b/app/client/socket/index.js
index 1430ac9..87540f4 100644
--- a/app/client/socket/index.js
+++ b/app/client/socket/index.js
@@ -15,7 +15,7 @@ export default {
socket.on('status', (data) => {
console.log('got status', data.key, data.value)
- store.dispatch({ type: types.socket.status })
+ store.dispatch({ type: types.socket.status, ...data })
switch (data.key) {
case 'processing':
store.dispatch({