Commit 1e3d7c22 authored by Chunchi Che's avatar Chunchi Che

fix shuffleHand.ts

parent 0859c7ff
Pipeline #21408 passed with stages
in 15 minutes and 40 seconds
......@@ -6,18 +6,6 @@ type MsgShuffleHand = ygopro.StocGameMessage.MsgShuffleHand;
export default (shuffleHand: MsgShuffleHand) => {
const { hands: codes, player: controller } = shuffleHand;
const metas = codes.map((code) => {
return {
occupant: { id: code, data: {}, text: {} },
location: {
controler: controller,
location: ygopro.CardZone.HAND,
},
idleInteractivities: [],
counters: {},
};
});
matStore.hands.of(controller).length = 0;
matStore.hands.of(controller).push(...metas);
matStore.hands.of(controller).add(codes);
};
......@@ -28,10 +28,6 @@ const { cardModal } = messageStore;
export const CardModal = () => {
const snapCardModal = useSnapshot(cardModal);
// const dispatch = store.dispatch;
// const isOpen = useAppSelector(selectCardModalIsOpen);
// const meta = useAppSelector(selectCardModalMeta);
const isOpen = snapCardModal.isOpen;
const meta = snapCardModal.meta;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment