This commit is contained in:
ntr 2019-04-04 00:09:07 +11:00
parent 6ca0ed86f4
commit fc97a89ff6
3 changed files with 3 additions and 3 deletions

View File

@ -16,6 +16,8 @@ const addState = connect(
return ws.sendVboxApply(instance.instance, crypId, i);
}
console.log(instance, 'instaince')
return { instance, account, sendInstanceReady, sendVboxApply };
},

View File

@ -54,8 +54,6 @@ function registerEvents(store) {
}
function setPlayer(v) {
const { instance } = store.getState();
console.log(instance === v);
return store.dispatch(actions.setInstance(v));
}

View File

@ -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;
}