focker
This commit is contained in:
parent
6ca0ed86f4
commit
fc97a89ff6
@ -16,6 +16,8 @@ const addState = connect(
|
||||
return ws.sendVboxApply(instance.instance, crypId, i);
|
||||
}
|
||||
|
||||
console.log(instance, 'instaince')
|
||||
|
||||
return { instance, account, sendInstanceReady, sendVboxApply };
|
||||
},
|
||||
|
||||
|
||||
@ -54,8 +54,6 @@ function registerEvents(store) {
|
||||
}
|
||||
|
||||
function setPlayer(v) {
|
||||
const { instance } = store.getState();
|
||||
console.log(instance === v);
|
||||
return store.dispatch(actions.setInstance(v));
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user