Skip to content

Commit

Permalink
Update timers, reset time interval on socket data
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorizzo committed Jul 19, 2018
1 parent efbaa7b commit f394b4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/plugins/socketPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default function (socket) {
action = 'socket' + action.charAt(0).toUpperCase() + action.slice(1)
if (store._actions[action]) {
store.dispatch(action, data)
store.dispatch('setDateInterval')
} else {
if (res.req && res.req.key) {
store.dispatch('socketData', res)
Expand Down

0 comments on commit f394b4c

Please sign in to comment.