diff --git a/client/src/components/instance.container.jsx b/client/src/components/instance.container.jsx index 054c8573..1802b1fc 100644 --- a/client/src/components/instance.container.jsx +++ b/client/src/components/instance.container.jsx @@ -16,6 +16,8 @@ const addState = connect( return ws.sendVboxApply(instance.instance, crypId, i); } + console.log(instance, 'instaince') + return { instance, account, sendInstanceReady, sendVboxApply }; }, diff --git a/client/src/events.jsx b/client/src/events.jsx index 800402ba..e7601def 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -54,8 +54,6 @@ function registerEvents(store) { } function setPlayer(v) { - const { instance } = store.getState(); - console.log(instance === v); return store.dispatch(actions.setInstance(v)); } diff --git a/client/src/reducers.jsx b/client/src/reducers.jsx index ce1f20da..d48b18ad 100644 --- a/client/src/reducers.jsx +++ b/client/src/reducers.jsx @@ -44,7 +44,7 @@ const defaultInstance = null; function instanceReducer(state = defaultInstance, action) { switch (action.type) { case actions.SET_INSTANCE: - return Object.assign({}, action.value); + return action.value; default: return state; }