focker
This commit is contained in:
parent
6ca0ed86f4
commit
fc97a89ff6
@ -16,6 +16,8 @@ const addState = connect(
|
|||||||
return ws.sendVboxApply(instance.instance, crypId, i);
|
return ws.sendVboxApply(instance.instance, crypId, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(instance, 'instaince')
|
||||||
|
|
||||||
return { instance, account, sendInstanceReady, sendVboxApply };
|
return { instance, account, sendInstanceReady, sendVboxApply };
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -54,8 +54,6 @@ function registerEvents(store) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setPlayer(v) {
|
function setPlayer(v) {
|
||||||
const { instance } = store.getState();
|
|
||||||
console.log(instance === v);
|
|
||||||
return store.dispatch(actions.setInstance(v));
|
return store.dispatch(actions.setInstance(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ const defaultInstance = null;
|
|||||||
function instanceReducer(state = defaultInstance, action) {
|
function instanceReducer(state = defaultInstance, action) {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case actions.SET_INSTANCE:
|
case actions.SET_INSTANCE:
|
||||||
return Object.assign({}, action.value);
|
return action.value;
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user