From fc97a89ff63767f59c623a9e1a7b5357c4dda153 Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 4 Apr 2019 00:09:07 +1100 Subject: [PATCH] focker --- client/src/components/instance.container.jsx | 2 ++ client/src/events.jsx | 2 -- client/src/reducers.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; }